aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSevz <leohdz172@protonmail.com>2022-03-10 10:16:49 -0600
committerGitHub <noreply@github.com>2022-03-10 10:16:49 -0600
commitf83f1049db1175c65fb7685d26e301f96224d86b (patch)
tree00551f1287a956c9e9d55e9ccc93909c862b0268
parentd1ff1e6f75d9c53c953957b5c0a64e0bcb40008b (diff)
parent79dcc0d3271395fe1258d818718209254d846b1b (diff)
Merge pull request #149 from xi/fix-grabc-unmap
reset cursor mode when grabc is unmapped
-rw-r--r--dwl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index 9f6a2e7..995c77c 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2280,6 +2280,10 @@ unmapnotify(struct wl_listener *listener, void *data)
{
/* Called when the surface is unmapped, and should no longer be shown. */
Client *c = wl_container_of(listener, c, unmap);
+ if (c == grabc) {
+ cursor_mode = CurNormal;
+ grabc = NULL;
+ }
wl_list_remove(&c->link);
if (client_is_unmanaged(c))
return;