Merge pull request #149 from xi/fix-grabc-unmap

reset cursor mode when grabc is unmapped
main
Sevz 2022-03-10 10:16:49 -06:00 committed by GitHub
commit f83f1049db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

4
dwl.c
View File

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