diff options
author | Havoc Pennington <hp@pobox.com> | 2002-08-09 14:22:00 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-08-09 14:22:00 +0000 |
commit | 79857803dec50511bcfd83cb247500c0771a182c (patch) | |
tree | fb70eb0a7c6d4ac2b50e5561a5687bc78305d935 | |
parent | 4fcc9f052ee796271418e459309e63bfe5795125 (diff) | |
download | metacity-79857803dec50511bcfd83cb247500c0771a182c.tar.gz |
disable maximize, fullscreen, shade via keybindings on windows that don't
2002-08-09 Havoc Pennington <hp@pobox.com>
* src/keybindings.c (handle_toggle_maximize): disable maximize,
fullscreen, shade via keybindings on windows that don't support
it.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/keybindings.c | 6 |
2 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,9 @@ +2002-08-09 Havoc Pennington <hp@pobox.com> + + * src/keybindings.c (handle_toggle_maximize): disable maximize, + fullscreen, shade via keybindings on windows that don't support + it. + 2002-08-08 Craig Black <blackc@speakeasy.net> Patch to provide extra cues when using the window menu diff --git a/src/keybindings.c b/src/keybindings.c index ab838cca..aecb448d 100644 --- a/src/keybindings.c +++ b/src/keybindings.c @@ -2409,7 +2409,7 @@ handle_toggle_fullscreen (MetaDisplay *display, { if (window->fullscreen) meta_window_unmake_fullscreen (window); - else + else if (window->has_resize_func) meta_window_make_fullscreen (window); } } @@ -2424,7 +2424,7 @@ handle_toggle_maximize (MetaDisplay *display, { if (window->maximized) meta_window_unmaximize (window); - else + else if (window->has_maximize_func) meta_window_maximize (window); } } @@ -2439,7 +2439,7 @@ handle_toggle_shade (MetaDisplay *display, { if (window->shaded) meta_window_unshade (window); - else + else if (window->has_shade_func) meta_window_shade (window); } } |