]> git.sur5r.net Git - i3/i3/commitdiff
render resize windows retina-correctly
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 2 May 2014 15:11:48 +0000 (17:11 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 2 May 2014 15:11:48 +0000 (17:11 +0200)
src/resize.c

index 61c4ada7e9c1e5329285edc3ad17e1f72527f625..1115de5c471bad5f0a9306beece2b1dfa9efc3c0 100644 (file)
@@ -130,7 +130,7 @@ int resize_graphical_handler(Con *first, Con *second, orientation_t orientation,
     if (orientation == HORIZ) {
         helprect.x = second->rect.x;
         helprect.y = second->rect.y;
-        helprect.width = 2;
+        helprect.width = logical_px(2);
         helprect.height = second->rect.height;
         initial_position = second->rect.x;
         xcb_warp_pointer(conn, XCB_NONE, event->root, 0, 0, 0, 0,
@@ -139,7 +139,7 @@ int resize_graphical_handler(Con *first, Con *second, orientation_t orientation,
         helprect.x = second->rect.x;
         helprect.y = second->rect.y;
         helprect.width = second->rect.width;
-        helprect.height = 2;
+        helprect.height = logical_px(2);
         initial_position = second->rect.y;
         xcb_warp_pointer(conn, XCB_NONE, event->root, 0, 0, 0, 0,
                 event->root_x, second->rect.y);