From 4eeeb1557a3a0caff6ef1debd92aeb541ae1b556 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Thu, 26 Sep 2013 10:33:06 +0200 Subject: [PATCH] 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 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/constraints.c b/src/core/constraints.c index 606baea26..20a918b69 100644 --- a/src/core/constraints.c +++ b/src/core/constraints.c @@ -447,12 +447,14 @@ setup_constraint_info (ConstraintInfo *info, /* Workaround braindead legacy apps that don't know how to * fullscreen themselves properly - don't get fooled by - * windows which hide their titlebar when maximized; that's - * not the same as fullscreen, even if there are no struts - * making the workarea smaller than the monitor. + * 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->hide_titlebar_when_maximized && + window->decorated && meta_rectangle_equal (new, &monitor_info->rect) && window->has_fullscreen_func && !window->fullscreen)