summaryrefslogtreecommitdiff
path: root/src/core/window.c
diff options
context:
space:
mode:
authorThomas Thurman <tthurman@gnome.org>2008-02-18 00:21:50 +0000
committerThomas James Alexander Thurman <tthurman@src.gnome.org>2008-02-18 00:21:50 +0000
commit07939f235fb1be13c3c830cc768fbe1c394f679b (patch)
treed343cbe613f195d740f0ed45a937af748402dd34 /src/core/window.c
parentabfccf50027ac6ec56e677cb14ac536b8be227b4 (diff)
downloadmetacity-07939f235fb1be13c3c830cc768fbe1c394f679b.tar.gz
When resizing a window with the keyboard, stay one pixels from the edges
2008-02-18 Thomas Thurman <tthurman@gnome.org> * 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
Diffstat (limited to 'src/core/window.c')
-rw-r--r--src/core/window.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 31c483ac..49b19132 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: