reset cursor mode when grabc is unmapped

main
Tobias Bengfort 2021-09-04 13:46:58 +02:00
parent d4e08c0762
commit 79dcc0d327
1 changed files with 4 additions and 0 deletions

4
dwl.c
View File

@ -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;