mirror of
https://github.com/brl/mutter.git
synced 2025-07-22 17:41:50 +00:00
leave has_fullscreen_func set to TRUE if the window is screen sized and
2002-08-15 Havoc Pennington <hp@pobox.com> * src/window.c (recalc_window_features): leave has_fullscreen_func set to TRUE if the window is screen sized and undecorated, even if the window isn't resizable. idea from Christian - Manny Calavera - Neumair * src/keybindings.c (handle_toggle_fullscreen) (handle_toggle_maximize): these disabled fullscreen/maximize if the window wasn't resizable, should have used has_fullscreen_func has_maximize_func instead. 2002-08-15 Havoc Pennington <hp@pobox.com> * src/keybindings.c: implement raise/lower * src/metacity.schemas.in: add raise/lower * src/prefs.c: add "raise" and "lower" prefs to keybindings * src/display.c (meta_display_set_grab_op_cursor): assert that the screen arg is non-NULL in appropriate cases
This commit is contained in:

committed by
Havoc Pennington

parent
bb9cc21d8e
commit
9ed1636ffe
13
src/window.c
13
src/window.c
@ -5284,11 +5284,20 @@ recalc_window_features (MetaWindow *window)
|
||||
window->size_hints.min_height == window->size_hints.max_height)
|
||||
window->has_resize_func = FALSE;
|
||||
|
||||
/* don't allow fullscreen if we can't resize */
|
||||
/* don't allow fullscreen if we can't resize, unless the size
|
||||
* is entire screen size (kind of broken, because we
|
||||
* actually fullscreen to xinerama head size not screen size)
|
||||
*/
|
||||
if (!window->has_resize_func)
|
||||
{
|
||||
window->has_maximize_func = FALSE;
|
||||
window->has_fullscreen_func = FALSE;
|
||||
|
||||
if (window->size_hints.min_width == window->screen->width &&
|
||||
window->size_hints.min_height == window->screen->height &&
|
||||
!window->decorated)
|
||||
; /* leave fullscreen available */
|
||||
else
|
||||
window->has_fullscreen_func = FALSE;
|
||||
}
|
||||
|
||||
/* no shading if not decorated */
|
||||
|
Reference in New Issue
Block a user