diff options
author | Thomas Thurman <thomas thurman org uk> | 2006-02-12 03:17:10 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2006-02-12 03:17:10 +0000 |
commit | ce3299e81525b84a380311118d29a6d6c58280de (patch) | |
tree | 535562e621c2b22bbf2a4df30b83586c4402dec6 /src/keybindings.c | |
parent | 0e8c8eb6b5f3c1648655209f09211a3c82b243f7 (diff) | |
download | metacity-ce3299e81525b84a380311118d29a6d6c58280de.tar.gz |
Disable alt-f7 if a window can't be moved, and alt-f8 if it can't be
2006-02-11 Thomas Thurman <thomas thurman org uk>
Disable alt-f7 if a window can't be moved, and alt-f8 if it
can't be resized. Fixes #328920.
* src/keybindings.c (handle_begin_move, handle_begin_resize):
check window->has_*_func before beginning operation
Diffstat (limited to 'src/keybindings.c')
-rw-r--r-- | src/keybindings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keybindings.c b/src/keybindings.c index 7c8e7aa1..b8f8a737 100644 --- a/src/keybindings.c +++ b/src/keybindings.c @@ -3173,7 +3173,7 @@ handle_begin_move (MetaDisplay *display, XEvent *event, MetaKeyBinding *binding) { - if (window) + if (window && window->has_move_func) { meta_window_begin_grab_op (window, META_GRAB_OP_KEYBOARD_MOVING, @@ -3188,7 +3188,7 @@ handle_begin_resize (MetaDisplay *display, XEvent *event, MetaKeyBinding *binding) { - if (window) + if (window && window->has_resize_func) { meta_window_begin_grab_op (window, META_GRAB_OP_KEYBOARD_RESIZING_UNKNOWN, |