From 79857803dec50511bcfd83cb247500c0771a182c Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 9 Aug 2002 14:22:00 +0000 Subject: [PATCH] disable maximize, fullscreen, shade via keybindings on windows that don't 2002-08-09 Havoc Pennington * src/keybindings.c (handle_toggle_maximize): disable maximize, fullscreen, shade via keybindings on windows that don't support it. --- ChangeLog | 6 ++++++ src/keybindings.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2a70e5674..525a0d7eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-08-09 Havoc Pennington + + * src/keybindings.c (handle_toggle_maximize): disable maximize, + fullscreen, shade via keybindings on windows that don't support + it. + 2002-08-08 Craig Black Patch to provide extra cues when using the window menu diff --git a/src/keybindings.c b/src/keybindings.c index ab838cca5..aecb448df 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); } }