Commit ce3299e8 authored by Thomas Thurman's avatar Thomas Thurman Committed by Elijah Newren
Browse files

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
parent 0e8c8eb6
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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment