diff --git a/sway/input/cursor.c b/sway/input/cursor.c index aeab558cbf..a665b7e14f 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; }