mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
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
This commit is contained in:
parent
0e8c8eb6b5
commit
ce3299e815
@ -1,3 +1,11 @@
|
||||
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
|
||||
|
||||
2006-02-11 Elijah Newren <newren gmail com>
|
||||
|
||||
Add a man page for metacity. Original version taken from Debian
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user