From 7d9dcfb2621269bcb53b1ddcf7419a9760a77c60 Mon Sep 17 00:00:00 2001 From: kvark Date: Sun, 17 Aug 2025 13:46:16 +0700 Subject: [PATCH] input/cursor: fix selection of all contaners when clicking in popup-menu and on the lockscreen --- sway/input/cursor.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sway/input/cursor.c b/sway/input/cursor.c index aeab558cb..a665b7e14 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -102,6 +102,10 @@ struct sway_node *node_at_coords( return NULL; } + if (scene_descriptor_try_get(current, SWAY_SCENE_DESC_POPUP)) { + return NULL; + } + #if WLR_HAS_XWAYLAND if (scene_descriptor_try_get(current, SWAY_SCENE_DESC_XWAYLAND_UNMANAGED)) { return NULL; @@ -134,6 +138,10 @@ struct sway_node *node_at_coords( return NULL; } + if (server.session_lock.lock) { + return NULL; + } + return &ws->node; }