aboutsummaryrefslogtreecommitdiff
path: root/url-mode.c
diff options
context:
space:
mode:
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);
}
}