diff options
author | Danny Baumann <dannybaumann@web.de> | 2008-10-24 08:57:04 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2009-02-04 08:48:02 +0100 |
commit | 3b4e93009b574120d49fe950bf68a7932a81fc70 (patch) | |
tree | 9d25d71e440533c46879ed8c77f34ab3639d3b92 | |
parent | 052a21f8455673f8b3c2919579065cff32efc441 (diff) |
Only auto-maximize windows that have a title bar and are allowed to be maximized.
-rw-r--r-- | plugins/place.c | 7 |
1 files changed, 6 insertions, 1 deletions
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) |