From 0df5753aed57c6b5e3a5f64ff410cadf8d96c35c Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Wed, 4 Nov 2020 03:08:35 -0500 Subject: 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. --- sway/input/seatop_default.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sway') 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, cont->border == B_CSD) { return WLR_EDGE_NONE; } + if (cont->fullscreen_mode) { + return WLR_EDGE_NONE; + } enum wlr_edges edge = 0; if (cursor->cursor->x < cont->x + cont->border_thickness) { -- cgit v1.2.3