]> git.sur5r.net Git - i3/i3/commitdiff
Size resizebar according to container size.
authorPeter Boström <git@pbos.me>
Tue, 24 Dec 2013 11:57:34 +0000 (12:57 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 1 Jan 2014 14:21:33 +0000 (15:21 +0100)
src/resize.c

index bacadf2efe6ced1092f110518d314882d11a7e93..61c4ada7e9c1e5329285edc3ad17e1f72527f625 100644 (file)
@@ -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,