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/constraints.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/constraints.c')
-rw-r--r-- | src/core/constraints.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/constraints.c b/src/core/constraints.c index 800b293a..a060d20d 100644 --- a/src/core/constraints.c +++ b/src/core/constraints.c @@ -27,6 +27,7 @@ #include "constraints.h" #include "workspace.h" #include "place.h" +#include "prefs.h" #include <stdlib.h> #include <math.h> @@ -424,7 +425,8 @@ setup_constraint_info (ConstraintInfo *info, /* Workaround braindead legacy apps that don't know how to * fullscreen themselves properly. */ - if (meta_rectangle_equal (new, &xinerama_info->rect) && + if (meta_prefs_get_force_fullscreen() && + meta_rectangle_equal (new, &xinerama_info->rect) && window->has_fullscreen_func && !window->fullscreen) { |