mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
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.
This commit is contained in:
parent
b42ed32041
commit
0df5753aed
1 changed files with 3 additions and 0 deletions
|
@ -73,6 +73,9 @@ static enum wlr_edges find_edge(struct sway_container *cont,
|
||||||
cont->border == B_CSD) {
|
cont->border == B_CSD) {
|
||||||
return WLR_EDGE_NONE;
|
return WLR_EDGE_NONE;
|
||||||
}
|
}
|
||||||
|
if (cont->fullscreen_mode) {
|
||||||
|
return WLR_EDGE_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
enum wlr_edges edge = 0;
|
enum wlr_edges edge = 0;
|
||||||
if (cursor->cursor->x < cont->x + cont->border_thickness) {
|
if (cursor->cursor->x < cont->x + cont->border_thickness) {
|
||||||
|
|
Loading…
Reference in a new issue