aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Bengfort <tobias.bengfort@posteo.de>2021-09-04 13:46:58 +0200
committerTobias Bengfort <tobias.bengfort@posteo.de>2021-09-04 13:47:49 +0200
commit79dcc0d3271395fe1258d818718209254d846b1b (patch)
tree5c7ccaf1387119536b6675d9c8b8bc68ccfe466d
parentd4e08c07629b4534e45b292614899a6b9bb876bd (diff)
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 2c1634b..c798685 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2292,6 +2292,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;