summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/keybindings.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 2a70e56..525a0d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 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);
}
}