mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-28 10:02:43 +01:00
8deadf85cd
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
12 lines
337 B
Diff
12 lines
337 B
Diff
--- a/src/view/subsurface.cpp
|
|
+++ b/src/view/subsurface.cpp
|
|
@@ -41,7 +41,8 @@ wf::subsurface_implementation_t::subsurface_implementation_t(wlr_subsurface *_su
|
|
|
|
wf::point_t wf::subsurface_implementation_t::get_offset()
|
|
{
|
|
- assert(is_mapped());
|
|
+ if (!is_mapped())
|
|
+ return {0, 0};
|
|
|
|
return {
|
|
sub->current.x,
|