From 49c23b894809e04099a6cdb7e073b5b88c06e8c8 Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Wed, 18 Dec 2024 02:13:10 +0900 Subject: [PATCH] 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. --- src/xdg-popup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xdg-popup.c b/src/xdg-popup.c index 468a303c..454bfead 100644 --- a/src/xdg-popup.c +++ b/src/xdg-popup.c @@ -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); } -- 2.52.0