[metacity] constraints: don't apply fullscreen workarounds for CSD windows
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] constraints: don't apply fullscreen workarounds for CSD windows
- Date: Fri, 21 Feb 2014 11:27:34 +0000 (UTC)
commit c4057558954c737b9b3cc2db35e67361332a558d
Author: Giovanni Campagna <gcampagn redhat com>
Date: Thu Sep 26 10:33:06 2013 +0200
constraints: don't apply fullscreen workarounds for CSD windows
If you maximize a CSD window on a monitor without struts, it ends
up taking the whole monitor size, but it doesn't mean that the
application wants to fullscreen.
https://bugzilla.gnome.org/show_bug.cgi?id=708718
src/core/constraints.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/core/constraints.c b/src/core/constraints.c
index f3a1613..7c2960c 100644
--- a/src/core/constraints.c
+++ b/src/core/constraints.c
@@ -421,9 +421,13 @@ 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 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]