mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
resistance: only resist "entry" into another window space
This commit is contained in:
parent
2262851237
commit
8a0f1f9355
4 changed files with 33 additions and 26 deletions
|
|
@ -90,11 +90,13 @@ validate_single_region_edge(int *valid_edge,
|
|||
* the region borders for aligned edges only.
|
||||
*/
|
||||
|
||||
bool lesser = direction == VIEW_EDGE_LEFT || direction == VIEW_EDGE_UP;
|
||||
|
||||
validator(valid_edge,
|
||||
build_edge(view, direction, 0),
|
||||
build_edge(target, direction, 0),
|
||||
build_edge(region, view_edge_invert(direction), 0),
|
||||
build_edge(region, direction, rc.gap));
|
||||
build_edge(region, direction, rc.gap), lesser);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -132,11 +134,13 @@ validate_single_output_edge(int *valid_edge,
|
|||
.left = INT_MIN,
|
||||
};
|
||||
|
||||
bool lesser = direction == VIEW_EDGE_LEFT || direction == VIEW_EDGE_UP;
|
||||
|
||||
validator(valid_edge,
|
||||
build_edge(view, direction, 0),
|
||||
build_edge(target, direction, 0),
|
||||
build_edge(region, direction, 0),
|
||||
build_edge(unbounded, direction, 0));
|
||||
build_edge(unbounded, direction, 0), lesser);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue