From 51d4d80b5404546814d13f63fa1e632a55533c60 Mon Sep 17 00:00:00 2001 From: Michael Cardell Widerkrantz Date: Wed, 21 Jul 2010 11:55:16 +0200 Subject: Take into account the window border as well. --- mcwm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mcwm.c') diff --git a/mcwm.c b/mcwm.c index a30b6fb..d17960c 100644 --- a/mcwm.c +++ b/mcwm.c @@ -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); -- cgit v1.2.3