mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
common/box: drop box_contains()
This commit is contained in:
parent
51844c7fc9
commit
7969aa267e
3 changed files with 2 additions and 16 deletions
|
|
@ -1050,12 +1050,12 @@ view_cascade(struct view *view)
|
|||
* top-left corner is not covered by other views,
|
||||
* shift the candidate to bottom-right.
|
||||
*/
|
||||
if (box_contains(&candidate, &other)
|
||||
if (wlr_box_contains_box(&candidate, &other)
|
||||
&& !wlr_box_contains_point(
|
||||
&covered, other.x, other.y)) {
|
||||
candidate.x = other.x + offset_x;
|
||||
candidate.y = other.y + offset_y;
|
||||
if (!box_contains(&usable, &candidate)) {
|
||||
if (!wlr_box_contains_box(&usable, &candidate)) {
|
||||
/*
|
||||
* If the candidate doesn't fit within
|
||||
* the usable area, fall back to center
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue