diff options
author | Sevz <leohdz172@protonmail.com> | 2022-03-10 10:16:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 10:16:49 -0600 |
commit | f83f1049db1175c65fb7685d26e301f96224d86b (patch) | |
tree | 00551f1287a956c9e9d55e9ccc93909c862b0268 /dwl.c | |
parent | d1ff1e6f75d9c53c953957b5c0a64e0bcb40008b (diff) | |
parent | 79dcc0d3271395fe1258d818718209254d846b1b (diff) |
Merge pull request #149 from xi/fix-grabc-unmap
reset cursor mode when grabc is unmapped
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |