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.
This commit is contained in:
Havoc Pennington 2002-08-09 14:22:00 +00:00 committed by Havoc Pennington
parent 4fcc9f052e
commit 79857803de
2 changed files with 9 additions and 3 deletions

View File

@ -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> 2002-08-08 Craig Black <blackc@speakeasy.net>
Patch to provide extra cues when using the window menu Patch to provide extra cues when using the window menu

View File

@ -2409,7 +2409,7 @@ handle_toggle_fullscreen (MetaDisplay *display,
{ {
if (window->fullscreen) if (window->fullscreen)
meta_window_unmake_fullscreen (window); meta_window_unmake_fullscreen (window);
else else if (window->has_resize_func)
meta_window_make_fullscreen (window); meta_window_make_fullscreen (window);
} }
} }
@ -2424,7 +2424,7 @@ handle_toggle_maximize (MetaDisplay *display,
{ {
if (window->maximized) if (window->maximized)
meta_window_unmaximize (window); meta_window_unmaximize (window);
else else if (window->has_maximize_func)
meta_window_maximize (window); meta_window_maximize (window);
} }
} }
@ -2439,7 +2439,7 @@ handle_toggle_shade (MetaDisplay *display,
{ {
if (window->shaded) if (window->shaded)
meta_window_unshade (window); meta_window_unshade (window);
else else if (window->has_shade_func)
meta_window_shade (window); meta_window_shade (window);
} }
} }