Bugfix: Correctly check coordinates for resizing floating windows (Thanks Mirko)

next
Michael Stapelberg 2009-06-26 12:14:20 +02:00
parent a1c26fa72f
commit aaccc0e62c
1 changed files with 1 additions and 1 deletions

View 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");