From: Michael Stapelberg Date: Fri, 26 Jun 2009 10:14:20 +0000 (+0200) Subject: Bugfix: Correctly check coordinates for resizing floating windows (Thanks Mirko) X-Git-Tag: 3.b X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aaccc0e62c696e59fa3e6f9e649f439086a01094;p=i3%2Fi3 Bugfix: Correctly check coordinates for resizing floating windows (Thanks Mirko) --- diff --git a/src/floating.c b/src/floating.c index 5deda47a..70112b57 100644 --- a/src/floating.c +++ b/src/floating.c @@ -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");