summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-15 06:43:50 -0800
committerStefano Karapetsas <[email protected]>2014-01-15 06:43:50 -0800
commitcb78173f1f10151f6ff47fbcee35c085216ae9c3 (patch)
treecc1b1037bd7d28b782789f4af87b349d65fe71d9
parent073d8e090f62b509d33021a6ec2cae95f539db55 (diff)
parent12c2862d899ff9fdfabc9fcd0ff9280ac9160e33 (diff)
downloadmarco-1.6.tar.bz2
marco-1.6.tar.xz
Merge pull request #80 from infirit/1.61.6
constraints: don't apply fullscreen workarounds for CSD windows
-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)