aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2023-01-16 19:12:33 +0100
committerLibravatar Simon Zeni <simon@bl4ckb0ne.ca>2023-01-18 11:23:05 -0500
commit6a3e265326fab11b8f68374c9f30410f647ae866 (patch)
treea365ec27dcbf1b28c215c121bb625870aef20455 /sway/input/cursor.c
parentFix indentation in surface_is_xdg_popup() (diff)
downloadsway-6a3e265326fab11b8f68374c9f30410f647ae866.tar.gz
sway-6a3e265326fab11b8f68374c9f30410f647ae866.tar.zst
sway-6a3e265326fab11b8f68374c9f30410f647ae866.zip
Fix pointer events for ext-session-lock surfaces
We were never sending any pointer event to ext-session-lock surfaces.
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 498ab4d6..efd67a76 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -97,6 +97,24 @@ struct sway_node *node_at_coords(
97 double ox = lx, oy = ly; 97 double ox = lx, oy = ly;
98 wlr_output_layout_output_coords(root->output_layout, wlr_output, &ox, &oy); 98 wlr_output_layout_output_coords(root->output_layout, wlr_output, &ox, &oy);
99 99
100 if (server.session_lock.locked) {
101 if (server.session_lock.lock == NULL) {
102 return NULL;
103 }
104 struct wlr_session_lock_surface_v1 *lock_surf;
105 wl_list_for_each(lock_surf, &server.session_lock.lock->surfaces, link) {
106 if (lock_surf->output != wlr_output) {
107 continue;
108 }
109
110 *surface = wlr_surface_surface_at(lock_surf->surface, ox, oy, sx, sy);
111 if (*surface != NULL) {
112 return NULL;
113 }
114 }
115 return NULL;
116 }
117
100 // layer surfaces on the overlay layer are rendered on top 118 // layer surfaces on the overlay layer are rendered on top
101 if ((*surface = layer_surface_at(output, 119 if ((*surface = layer_surface_at(output,
102 &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY], 120 &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY],