From aaccc0e62c696e59fa3e6f9e649f439086a01094 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 26 Jun 2009 12:14:20 +0200 Subject: [PATCH] Bugfix: Correctly check coordinates for resizing floating windows (Thanks Mirko) --- src/floating.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.39.5