mirror of
https://github.com/vale981/bspwm
synced 2025-03-05 09:51:38 -05:00
Fix gcc warnings
This commit is contained in:
parent
c32f30aa7e
commit
d7ead94ea0
1 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,8 @@ uint32_t rect_dir_dist(xcb_rectangle_t r1, xcb_rectangle_t r2, direction_t dir)
|
|||
case DIR_EAST:
|
||||
return r2.x - (r1.x + r1.width);
|
||||
break;
|
||||
default:
|
||||
return UINT32_MAX;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -81,6 +83,8 @@ bool on_dir_side(xcb_rectangle_t r1, xcb_rectangle_t r2, direction_t dir)
|
|||
case DIR_EAST:
|
||||
return r2.x >= (r1.x + r1.width) && r2.y < (r1.y + r1.height) && (r2.y + r2.height) >= r1.y;
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue