From 07939f235fb1be13c3c830cc768fbe1c394f679b Mon Sep 17 00:00:00 2001 From: Thomas Thurman Date: Mon, 18 Feb 2008 00:21:50 +0000 Subject: [PATCH] When resizing a window with the keyboard, stay one pixels from the edges 2008-02-18 Thomas Thurman * src/core/window.c (warp_grab_pointer): When resizing a window with the keyboard, stay one pixels from the edges so that the cursor remains resting on a window edge even if we escape, whatever side it was on. Closes #436257. svn path=/trunk/; revision=3578 --- ChangeLog | 8 ++++++++ src/core/window.c | 12 ++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1bff79649..6b5eb836f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-02-18 Thomas Thurman + + * src/core/window.c (warp_grab_pointer): When + resizing a window with the keyboard, stay one + pixels from the edges so that the cursor remains + resting on a window edge even if we escape, + whatever side it was on. Closes #436257. + 2008-02-17 Thomas Thurman * tools/commit-wrangler.py: added new script to manage commits diff --git a/src/core/window.c b/src/core/window.c index 31c483acb..49b191327 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -7784,7 +7784,7 @@ warp_grab_pointer (MetaWindow *window, case META_GRAB_OP_KEYBOARD_RESIZING_S: *x = rect.width / 2; - *y = rect.height; + *y = rect.height - 1; break; case META_GRAB_OP_KEYBOARD_RESIZING_N: @@ -7798,23 +7798,23 @@ warp_grab_pointer (MetaWindow *window, break; case META_GRAB_OP_KEYBOARD_RESIZING_E: - *x = rect.width; + *x = rect.width - 1; *y = rect.height / 2; break; case META_GRAB_OP_KEYBOARD_RESIZING_SE: - *x = rect.width; - *y = rect.height; + *x = rect.width - 1; + *y = rect.height - 1; break; case META_GRAB_OP_KEYBOARD_RESIZING_NE: - *x = rect.width; + *x = rect.width - 1; *y = 0; break; case META_GRAB_OP_KEYBOARD_RESIZING_SW: *x = 0; - *y = rect.height; + *y = rect.height - 1; break; case META_GRAB_OP_KEYBOARD_RESIZING_NW: