From 38b6936c255ae4e4c8a1b8429b40591b83e00367 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20Bostr=C3=B6m?= Date: Tue, 24 Dec 2013 12:57:34 +0100 Subject: [PATCH] Size resizebar according to container size. --- src/resize.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/resize.c b/src/resize.c index bacadf2e..61c4ada7 100644 --- a/src/resize.c +++ b/src/resize.c @@ -129,16 +129,16 @@ int resize_graphical_handler(Con *first, Con *second, orientation_t orientation, Rect helprect; if (orientation == HORIZ) { helprect.x = second->rect.x; - helprect.y = output->rect.y; + helprect.y = second->rect.y; helprect.width = 2; - helprect.height = output->rect.height; + helprect.height = second->rect.height; initial_position = second->rect.x; xcb_warp_pointer(conn, XCB_NONE, event->root, 0, 0, 0, 0, second->rect.x, event->root_y); } else { - helprect.x = output->rect.x; + helprect.x = second->rect.x; helprect.y = second->rect.y; - helprect.width = output->rect.width; + helprect.width = second->rect.width; helprect.height = 2; initial_position = second->rect.y; xcb_warp_pointer(conn, XCB_NONE, event->root, 0, 0, 0, 0, -- 2.39.5