aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input
diff options
context:
space:
mode:
authorLibravatar Tudor Brindus <me@tbrindus.ca>2020-11-04 03:08:35 -0500
committerLibravatar Simon Ser <contact@emersion.fr>2020-11-05 12:25:15 +0100
commit0df5753aed57c6b5e3a5f64ff410cadf8d96c35c (patch)
treefb43d03e276401e679682644e11f1f3f06ef4dae /sway/input
parentfix typo (diff)
downloadsway-0df5753aed57c6b5e3a5f64ff410cadf8d96c35c.tar.gz
sway-0df5753aed57c6b5e3a5f64ff410cadf8d96c35c.tar.zst
sway-0df5753aed57c6b5e3a5f64ff410cadf8d96c35c.zip
input/seatop_default: consider fullscreen views to have no edges
Previously, `find_edge` on a single fullscreen view would occasionally return an edge rather than `WLR_EDGE_NONE`. This would trigger entry into `seatop_resize_tiling`, which doesn't have meaning for a fullscreen view. The result was that the fullscreen container hitbox was considered to be that of where it'd be if it were tiling, so most clicks would not go through. Fixes #5792.
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/seatop_default.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c
index e6d6c11b..a583ed62 100644
--- a/sway/input/seatop_default.c
+++ b/sway/input/seatop_default.c
@@ -73,6 +73,9 @@ static enum wlr_edges find_edge(struct sway_container *cont,
73 cont->border == B_CSD) { 73 cont->border == B_CSD) {
74 return WLR_EDGE_NONE; 74 return WLR_EDGE_NONE;
75 } 75 }
76 if (cont->fullscreen_mode) {
77 return WLR_EDGE_NONE;
78 }
76 79
77 enum wlr_edges edge = 0; 80 enum wlr_edges edge = 0;
78 if (cursor->cursor->x < cont->x + cont->border_thickness) { 81 if (cursor->cursor->x < cont->x + cont->border_thickness) {