From 82f98728186811a0d94f50ea270e450b34e81d05 Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Sun, 6 Mar 2022 03:13:31 -0500 Subject: [PATCH] input/cursor: don't allow resizing tiling fullscreen views This check already exists for floating fullscreen views, just copying it over. The views never truly got resized, but the cursor image would erroneously change to the resize cursor. --- sway/input/seatop_default.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c index 969352bfb..037e6a46e 100644 --- a/sway/input/seatop_default.c +++ b/sway/input/seatop_default.c @@ -399,7 +399,7 @@ static void handle_button(struct sway_seat *seat, uint32_t time_msec, // Handle tiling resize via mod bool mod_pressed = modifiers & config->floating_mod; - if (cont && !is_floating_or_child && mod_pressed && + if (cont && !is_floating_or_child && !is_fullscreen_or_child && mod_pressed && state == WLR_BUTTON_PRESSED) { uint32_t btn_resize = config->floating_mod_inverse ? BTN_LEFT : BTN_RIGHT;