Size resizebar according to container size.
Patch status: merged
Patch by Peter Boström
To apply this patch, use:
curl http://cr.i3wm.org/patch/352/raw.patch | git am
b/src/resize.c
13 |
@@ -125,14 +125,14 @@ int resize_graphical_handler(Con *first, Con *second, orientation_t orientation, |
14 |
Rect helprect; |
15 |
if (orientation == HORIZ) { |
16 |
helprect.x = event->root_x; |
17 |
- helprect.y = output->rect.y; |
18 |
+ helprect.y = second->rect.y; |
19 |
helprect.width = 2; |
20 |
- helprect.height = output->rect.height; |
21 |
+ helprect.height = second->rect.height; |
22 |
new_position = event->root_x; |
23 |
} else { |
24 |
- helprect.x = output->rect.x; |
25 |
+ helprect.x = second->rect.x; |
26 |
helprect.y = event->root_y; |
27 |
- helprect.width = output->rect.width; |
28 |
+ helprect.width = second->rect.width; |
29 |
helprect.height = 2; |
30 |
new_position = event->root_y; |
31 |
} |