From: tokyo4j Date: Tue, 17 Dec 2024 17:13:10 +0000 (+0900) Subject: xdg-popup: update pointer focus on popup destruction X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=49c23b894809e04099a6cdb7e073b5b88c06e8c8;p=proto%2Flabwc.git 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. --- 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); }