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
40cd53a9ad
commit
c4c6da199f
1 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ void apply_layout(monitor_t *m, desktop_t *d, node_t *n, layout_t l, xcb_rectang
|
|||
if ((n->first_child->constraints.min_width + n->second_child->constraints.min_width) <= rect.width) {
|
||||
if (fence < n->first_child->constraints.min_width) {
|
||||
fence = n->first_child->constraints.min_width;
|
||||
} else if (fence > (rect.width - n->second_child->constraints.min_width)) {
|
||||
} else if (fence > (uint16_t) (rect.width - n->second_child->constraints.min_width)) {
|
||||
fence = (rect.width - n->second_child->constraints.min_width);
|
||||
}
|
||||
n->split_ratio = (double) fence / (double) rect.width;
|
||||
|
@ -171,7 +171,7 @@ void apply_layout(monitor_t *m, desktop_t *d, node_t *n, layout_t l, xcb_rectang
|
|||
if ((n->first_child->constraints.min_height + n->second_child->constraints.min_height) <= rect.height) {
|
||||
if (fence < n->first_child->constraints.min_height) {
|
||||
fence = n->first_child->constraints.min_height;
|
||||
} else if (fence > (rect.height - n->second_child->constraints.min_height)) {
|
||||
} else if (fence > (uint16_t) (rect.height - n->second_child->constraints.min_height)) {
|
||||
fence = (rect.height - n->second_child->constraints.min_height);
|
||||
}
|
||||
n->split_ratio = (double) fence / (double) rect.height;
|
||||
|
|
Loading…
Add table
Reference in a new issue