Merge pull request #3857 from gldrk/ungrab-on-unmap

Release all grabs when unmanaging windows
This commit is contained in:
mergify[bot] 2023-12-31 22:14:10 +00:00 committed by GitHub
commit 2682bcb2ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -3010,6 +3010,8 @@ client_unmanage(client_t *c, client_unmanage_t reason)
if(reason != CLIENT_UNMANAGE_DESTROYED) if(reason != CLIENT_UNMANAGE_DESTROYED)
{ {
xwindow_buttons_grab(c->window, &(button_array_t){ .len = 0 });
xwindow_grabkeys(c->window, &(key_array_t){ .len = 0 });
area_t geometry = client_get_undecorated_geometry(c); area_t geometry = client_get_undecorated_geometry(c);
xcb_unmap_window(globalconf.connection, c->window); xcb_unmap_window(globalconf.connection, c->window);
xcb_reparent_window(globalconf.connection, c->window, globalconf.screen->root, xcb_reparent_window(globalconf.connection, c->window, globalconf.screen->root,