summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/constraints.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/constraints.c b/src/core/constraints.c
index 16d9b107..5a3ef438 100644
--- a/src/core/constraints.c
+++ b/src/core/constraints.c
@@ -423,9 +423,15 @@ setup_constraint_info (ConstraintInfo *info,
xinerama_info->number);
/* Workaround braindead legacy apps that don't know how to
- * fullscreen themselves properly.
+ * fullscreen themselves properly - don't get fooled by
+ * windows which hide their titlebar when maximized or which are
+ * client decorated; that's not the same as fullscreen, even
+ * if there are no struts making the workarea smaller than
+ * the monitor.
*/
+
if (meta_prefs_get_force_fullscreen() &&
+ window->decorated &&
meta_rectangle_equal (new, &xinerama_info->rect) &&
window->has_fullscreen_func &&
!window->fullscreen)