mirror of
https://github.com/vale981/bspwm
synced 2025-03-05 09:51:38 -05:00
Discard identical rectangles in on_dir_side
This commit is contained in:
parent
adb66e6264
commit
e2a959cd81
1 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,10 @@ uint32_t boundary_distance(xcb_rectangle_t r1, xcb_rectangle_t r2, direction_t d
|
|||
/* Is `r2` on the `dir` side of `r1`? */
|
||||
bool on_dir_side(xcb_rectangle_t r1, xcb_rectangle_t r2, direction_t dir)
|
||||
{
|
||||
if (rect_eq(r1, r2)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
xcb_point_t r1_max = {r1.x + r1.width - 1, r1.y + r1.height - 1};
|
||||
xcb_point_t r2_max = {r2.x + r2.width - 1, r2.y + r2.height - 1};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue