From 3b4e93009b574120d49fe950bf68a7932a81fc70 Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Fri, 24 Oct 2008 08:57:04 +0200 Subject: Only auto-maximize windows that have a title bar and are allowed to be maximized. --- plugins/place.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/place.c b/plugins/place.c index 5840a552..6447d75d 100644 --- a/plugins/place.c +++ b/plugins/place.c @@ -1329,7 +1329,12 @@ placeValidateWindowResizeRequest (CompWindow *w, if (xwc->width >= workArea.width && xwc->height >= workArea.height) { - placeSendWindowMaximizationRequest (w); + if ((w->actions & MAXIMIZE_STATE) == MAXIMIZE_STATE && + (w->mwmDecor & (MwmDecorAll | MwmDecorTitle)) && + !(w->state & CompWindowStateFullscreenMask)) + { + placeSendWindowMaximizationRequest (w); + } } if ((right - left) > workArea.width) -- cgit v1.2.3