aboutsummaryrefslogtreecommitdiff
path: root/url-mode.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-04-25 19:33:45 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-05-12 12:51:05 +0000
commit3b41379be43a21a00a776d0d136c5d1b2fe4007e (patch)
tree13454ab49cc74a3fd6a2f8f840a25facfac2b08d /url-mode.c
parentterm: reset: switch modifyOtherKeys back to level 1 (diff)
quirks: sway does not damage surface beneath sub-surface, when unmapped
When unmapping a sub-surface, Sway <= 1.8 does not damage the surface beneath the sub-surface. https://github.com/swaywm/sway/issues/6960 The workaround is to manually damage the main surface. Previously, this was done when exiting scrollback search, and after the ‘flash’ OSC. But other sub-surfaces, that may also be unmapped, did not. This patch adds a quirk handler that does this, and calls it when: * Exiting scrollback search * Ending the ‘flash’ OSC * Exiting unicode input mode * Clearing URL labels * Removing the scrollback position indicator Closes #1335
Diffstat (limited to 'url-mode.c')
-rw-r--r--url-mode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/url-mode.c b/url-mode.c
index 7d7ffd81..bd9b5157 100644
--- a/url-mode.c
+++ b/url-mode.c
@@ -14,6 +14,7 @@
#include "char32.h"
#include "grid.h"
#include "key-binding.h"
+#include "quirks.h"
#include "render.h"
#include "selection.h"
#include "spawn.h"
@@ -859,6 +860,10 @@ urls_reset(struct terminal *term)
tll_foreach(term->window->urls, it) {
wayl_win_subsurface_destroy(&it->item.surf);
tll_remove(term->window->urls, it);
+
+ /* Work around Sway bug - unmapping a sub-surface does not
+ * damage the underlying surface */
+ quirk_sway_subsurface_unmap(term);
}
}