Size resizebar according to container size.
This commit is contained in:
parent
69ce33d06d
commit
38b6936c25
|
@ -129,16 +129,16 @@ int resize_graphical_handler(Con *first, Con *second, orientation_t orientation,
|
||||||
Rect helprect;
|
Rect helprect;
|
||||||
if (orientation == HORIZ) {
|
if (orientation == HORIZ) {
|
||||||
helprect.x = second->rect.x;
|
helprect.x = second->rect.x;
|
||||||
helprect.y = output->rect.y;
|
helprect.y = second->rect.y;
|
||||||
helprect.width = 2;
|
helprect.width = 2;
|
||||||
helprect.height = output->rect.height;
|
helprect.height = second->rect.height;
|
||||||
initial_position = second->rect.x;
|
initial_position = second->rect.x;
|
||||||
xcb_warp_pointer(conn, XCB_NONE, event->root, 0, 0, 0, 0,
|
xcb_warp_pointer(conn, XCB_NONE, event->root, 0, 0, 0, 0,
|
||||||
second->rect.x, event->root_y);
|
second->rect.x, event->root_y);
|
||||||
} else {
|
} else {
|
||||||
helprect.x = output->rect.x;
|
helprect.x = second->rect.x;
|
||||||
helprect.y = second->rect.y;
|
helprect.y = second->rect.y;
|
||||||
helprect.width = output->rect.width;
|
helprect.width = second->rect.width;
|
||||||
helprect.height = 2;
|
helprect.height = 2;
|
||||||
initial_position = second->rect.y;
|
initial_position = second->rect.y;
|
||||||
xcb_warp_pointer(conn, XCB_NONE, event->root, 0, 0, 0, 0,
|
xcb_warp_pointer(conn, XCB_NONE, event->root, 0, 0, 0, 0,
|
||||||
|
|
Loading…
Reference in New Issue