Add a switch to disable autofullscreen'ing maximized windows without decorations
This commit is contained in:

committed by
Owen W. Taylor

parent
a7bbde1699
commit
eed3245b1b
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user