]> git.mdlowis.com Git - proto/labwc.git/commitdiff
xdg-popup: update pointer focus on popup destruction
authortokyo4j <hrak1529@gmail.com>
Tue, 17 Dec 2024 17:13:10 +0000 (02:13 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Thu, 19 Dec 2024 15:43:06 +0000 (00:43 +0900)
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

index 468a303cf417d7cdc76a9c8b1da446f6661a8fc2..454bfead13c9ac803479e90b57b904601705d46a 100644 (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);
 }