aboutsummaryrefslogtreecommitdiff
path: root/desktop/wayfire/footclose.patch
blob: 8eb8fc3730c03b674d30be707fb2116946330de4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- 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,