mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
view: fix unexpected view->tiled with SnapToEdge against centered view
In 2ac4811, I was missing that windows can be tiled to "center".
As a result, after executing
`<action name="SnapToEdge" combined="yes" direction="left" />` against a
center-tiled window, `view->tiled` is set to `CENTER|LEFT`.
This commit is contained in:
parent
e44a489530
commit
d94e5da815
1 changed files with 2 additions and 1 deletions
|
|
@ -2161,7 +2161,8 @@ view_snap_to_edge(struct view *view, enum lab_edge edge,
|
|||
|
||||
view_set_shade(view, false);
|
||||
|
||||
if (lab_edge_is_cardinal(edge) && view->maximized == VIEW_AXIS_NONE) {
|
||||
if (lab_edge_is_cardinal(edge) && view->maximized == VIEW_AXIS_NONE
|
||||
&& view->tiled != LAB_EDGE_CENTER) {
|
||||
enum lab_edge invert_edge = lab_edge_invert(edge);
|
||||
/* Represents axis of snapping direction */
|
||||
enum lab_edge parallel_mask = edge | invert_edge;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue