aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 02bd2239..cc0dbe99 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -99,14 +99,8 @@ static struct sway_container *container_at_coords(
99 return ws; 99 return ws;
100 } 100 }
101 if (ws->sway_workspace->fullscreen) { 101 if (ws->sway_workspace->fullscreen) {
102 struct wlr_surface *wlr_surface = ws->sway_workspace->fullscreen->surface; 102 return container_at(ws->sway_workspace->fullscreen, lx, ly,
103 if (wlr_surface_point_accepts_input(wlr_surface, ox, oy)) { 103 surface, sx, sy);
104 *sx = ox;
105 *sy = oy;
106 *surface = wlr_surface;
107 return ws->sway_workspace->fullscreen->swayc;
108 }
109 return NULL;
110 } 104 }
111 if ((*surface = layer_surface_at(output, 105 if ((*surface = layer_surface_at(output,
112 &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_TOP], 106 &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_TOP],
@@ -438,8 +432,8 @@ static void dispatch_cursor_button_floating(struct sway_cursor *cursor,
438 struct sway_container *cont) { 432 struct sway_container *cont) {
439 struct sway_seat *seat = cursor->seat; 433 struct sway_seat *seat = cursor->seat;
440 434
441 // Deny moving or resizing a fullscreen view 435 // Deny moving or resizing a fullscreen container
442 if (cont->type == C_VIEW && cont->sway_view->is_fullscreen) { 436 if (container_is_fullscreen_or_child(cont)) {
443 seat_pointer_notify_button(seat, time_msec, button, state); 437 seat_pointer_notify_button(seat, time_msec, button, state);
444 return; 438 return;
445 } 439 }