summaryrefslogtreecommitdiffstats
path: root/desktop/wayfire/footclose.patch
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/wayfire/footclose.patch')
-rw-r--r--desktop/wayfire/footclose.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/desktop/wayfire/footclose.patch b/desktop/wayfire/footclose.patch
new file mode 100644
index 0000000000..8eb8fc3730
--- /dev/null
+++ b/desktop/wayfire/footclose.patch
@@ -0,0 +1,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,