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:
tokyo4j 2024-12-18 02:13:10 +09:00 committed by Hiroaki Yamamoto
parent 86c35976ba
commit 49c23b8948

View file

@ -81,6 +81,9 @@ handle_xdg_popup_destroy(struct wl_listener *listener, void *data)
if (popup->commit.notify) {
wl_list_remove(&popup->commit.link);
}
cursor_update_focus(popup->parent_view->server);
free(popup);
}