Bugfix: Correctly check coordinates for resizing floating windows (Thanks Mirko)
This commit is contained in:
parent
a1c26fa72f
commit
aaccc0e62c
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user