summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-08-09 14:22:00 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-08-09 14:22:00 +0000
commit79857803dec50511bcfd83cb247500c0771a182c (patch)
treefb70eb0a7c6d4ac2b50e5561a5687bc78305d935 /src
parent4fcc9f052ee796271418e459309e63bfe5795125 (diff)
downloadmetacity-79857803dec50511bcfd83cb247500c0771a182c.tar.gz
metacity-79857803dec50511bcfd83cb247500c0771a182c.tar.bz2
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.
Diffstat (limited to 'src')
-rw-r--r--src/keybindings.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/keybindings.c b/src/keybindings.c
index ab838cc..aecb448 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);
}
}