summaryrefslogtreecommitdiff
path: root/src/core/constraints.c
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-06-19 17:30:37 +0200
committerThomas Thurman <tthurman@gnome.org>2009-07-06 07:51:45 -0400
commitb625ec30d99b2dcf86d8fa78b09f6d04dce3a6e0 (patch)
treea05aa083e8c833a30fc9ecab1fda2443936bc88f /src/core/constraints.c
parentf5313268d7efa217f8d31a6bb442460434917703 (diff)
downloadmetacity-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.c4
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)
{