diff options
author | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-06-19 17:30:37 +0200 |
---|---|---|
committer | Thomas Thurman <tthurman@gnome.org> | 2009-07-06 07:51:45 -0400 |
commit | b625ec30d99b2dcf86d8fa78b09f6d04dce3a6e0 (patch) | |
tree | a05aa083e8c833a30fc9ecab1fda2443936bc88f /src/core/prefs.c | |
parent | f5313268d7efa217f8d31a6bb442460434917703 (diff) | |
download | metacity-b625ec30d99b2dcf86d8fa78b09f6d04dce3a6e0.tar.gz |
Add a switch to disable autofullscreen'ing maximized windows without decorations
Diffstat (limited to 'src/core/prefs.c')
-rw-r--r-- | src/core/prefs.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/core/prefs.c b/src/core/prefs.c index 1f4fe410..6e41b3cc 100644 --- a/src/core/prefs.c +++ b/src/core/prefs.c @@ -95,6 +95,7 @@ static char *cursor_theme = NULL; static int cursor_size = 24; static gboolean compositing_manager = FALSE; static gboolean resize_with_right_button = FALSE; +static gboolean force_fullscreen = TRUE; static MetaVisualBellType visual_bell_type = META_VISUAL_BELL_FULLSCREEN_FLASH; static MetaButtonLayout button_layout; @@ -1751,6 +1752,9 @@ meta_preference_to_string (MetaPreference pref) case META_PREF_RESIZE_WITH_RIGHT_BUTTON: return "RESIZE_WITH_RIGHT_BUTTON"; + + case META_PREF_FORCE_FULLSCREEN: + return "FORCE_FULLSCREEN"; } return "(unknown)"; @@ -2737,6 +2741,12 @@ meta_prefs_get_mouse_button_menu (void) return resize_with_right_button ? 2: 3; } +gboolean +meta_prefs_get_force_fullscreen (void) +{ + return force_fullscreen; +} + void meta_prefs_set_compositing_manager (gboolean whether) { @@ -2797,3 +2807,10 @@ init_button_layout(void) }; #endif + +void +meta_prefs_set_force_fullscreen (gboolean whether) +{ + force_fullscreen = whether; +} + |