diff options
author | Michael Cardell Widerkrantz <mc@hack.org> | 2010-07-21 11:55:16 +0200 |
---|---|---|
committer | Michael Cardell Widerkrantz <mc@hack.org> | 2010-07-21 11:55:16 +0200 |
commit | 51d4d80b5404546814d13f63fa1e632a55533c60 (patch) | |
tree | 308c8f5aa89144253d15f6cede69c68b52056e06 /mcwm.c | |
parent | 8bc5126791b4e3a5940a593ba4944ae7ed954ab5 (diff) | |
download | mcwm-51d4d80b5404546814d13f63fa1e632a55533c60.zip |
Take into account the window border as well.
Diffstat (limited to 'mcwm.c')
-rw-r--r-- | mcwm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1657,7 +1657,8 @@ void movestep(struct client *client, char direction) * If the pointer was inside the window to begin with, move * pointer back to where it was, relative to the window. */ - if (start_x > 0 && start_x < width && start_y > 0 && start_y < height ) + if (start_x > 0 - BORDERWIDTH && start_x < width + BORDERWIDTH + && start_y > 0 - BORDERWIDTH && start_y < height + BORDERWIDTH ) { xcb_warp_pointer(conn, XCB_NONE, win, 0, 0, 0, 0, start_x, start_y); |