Add a switch to disable autofullscreen'ing maximized windows without decorations

This commit is contained in:
Tomeu Vizoso
2009-06-19 17:30:37 +02:00
committed by Owen W. Taylor
parent a7bbde1699
commit eed3245b1b
4 changed files with 35 additions and 2 deletions

View File

@@ -27,6 +27,7 @@
#include "constraints.h"
#include "workspace-private.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, &monitor_info->rect) &&
if (meta_prefs_get_force_fullscreen() &&
meta_rectangle_equal (new, &monitor_info->rect) &&
window->has_fullscreen_func &&
!window->fullscreen)
{