aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Alexander Orzechowski <alex@ozal.ski>2024-01-18 10:04:26 -0500
committerLibravatar Kirill Primak <vyivel@eclair.cafe>2024-01-18 18:36:54 +0300
commit9a579666068d62b9354a39941e1ac8c1f4a58093 (patch)
tree79d5d36f27b43f1d68969242211a0e01395c6bfc /sway/input/cursor.c
parentscene_graph: Port seatop_move_tiling indicators (diff)
downloadsway-9a579666068d62b9354a39941e1ac8c1f4a58093.tar.gz
sway-9a579666068d62b9354a39941e1ac8c1f4a58093.tar.zst
sway-9a579666068d62b9354a39941e1ac8c1f4a58093.zip
scene_graph: Port ext_session_v1
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index e8604193..107424c9 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -95,24 +95,6 @@ struct sway_node *node_at_coords(
95 double ox = lx, oy = ly; 95 double ox = lx, oy = ly;
96 wlr_output_layout_output_coords(root->output_layout, wlr_output, &ox, &oy); 96 wlr_output_layout_output_coords(root->output_layout, wlr_output, &ox, &oy);
97 97
98 if (server.session_lock.locked) {
99 if (server.session_lock.lock == NULL) {
100 return NULL;
101 }
102 struct wlr_session_lock_surface_v1 *lock_surf;
103 wl_list_for_each(lock_surf, &server.session_lock.lock->surfaces, link) {
104 if (lock_surf->output != wlr_output) {
105 continue;
106 }
107
108 *surface = wlr_surface_surface_at(lock_surf->surface, ox, oy, sx, sy);
109 if (*surface != NULL) {
110 return NULL;
111 }
112 }
113 return NULL;
114 }
115
116 // layer surfaces on the overlay layer are rendered on top 98 // layer surfaces on the overlay layer are rendered on top
117 if ((*surface = layer_surface_at(output, 99 if ((*surface = layer_surface_at(output,
118 &output->shell_layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY], 100 &output->shell_layers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY],