mirror of
https://github.com/labwc/labwc.git
synced 2026-03-16 05:33:50 -04:00
xdg-popup: update pointer focus on popup destruction
Before this commit, closing a popup didn't move the pointer focus to the main toplevel until the cursor is moved.
This commit is contained in:
parent
86c35976ba
commit
49c23b8948
1 changed files with 3 additions and 0 deletions
|
|
@ -81,6 +81,9 @@ handle_xdg_popup_destroy(struct wl_listener *listener, void *data)
|
||||||
if (popup->commit.notify) {
|
if (popup->commit.notify) {
|
||||||
wl_list_remove(&popup->commit.link);
|
wl_list_remove(&popup->commit.link);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cursor_update_focus(popup->parent_view->server);
|
||||||
|
|
||||||
free(popup);
|
free(popup);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue