]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Correctly check coordinates for resizing floating windows (Thanks Mirko) 3.b
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 26 Jun 2009 10:14:20 +0000 (12:14 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 26 Jun 2009 10:14:20 +0000 (12:14 +0200)
src/floating.c

index 5deda47a7c6a536065c7092fc94e8aa2725bf091..70112b57051e48fd56495b2f863fa7a6e0f5f7c1 100644 (file)
@@ -221,7 +221,7 @@ int floating_border_click(xcb_connection_t *conn, Client *client, xcb_button_pre
                 border = BORDER_BOTTOM;
         else if (event->event_x <= 2)
                 border = BORDER_LEFT;
-        else if (event->event_x > 2)
+        else if (event->event_x >= (client->rect.width - 2))
                 border = BORDER_RIGHT;
         else {
                 LOG("Not on any border, not doing anything.\n");