Fixed missing window decorations on compiz.
authorSamuel Rødal <samuel.rodal@nokia.com>
Thu, 23 Aug 2012 08:11:44 +0000 (10:11 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 23 Aug 2012 13:54:02 +0000 (15:54 +0200)
Task-number: QTBUG-26954
Change-Id: I6981338d4bbc9cf1440c9d67e9d034e0553dfeae
Reviewed-by: Jason Barron <jason.barron@nokia.com>
src/plugins/platforms/xcb/qxcbwindow.cpp

index 7020e63..e1e8c9e 100644 (file)
@@ -785,9 +785,7 @@ void QXcbWindow::setMotifWindowFlags(Qt::WindowFlags flags)
         if (!(flags & Qt::FramelessWindowHint) && !(customize && !(flags & Qt::WindowTitleHint))) {
             mwmhints.decorations |= MWM_DECOR_BORDER;
             mwmhints.decorations |= MWM_DECOR_RESIZEH;
-
-            if (flags & Qt::WindowTitleHint)
-                mwmhints.decorations |= MWM_DECOR_TITLE;
+            mwmhints.decorations |= MWM_DECOR_TITLE;
 
             if (flags & Qt::WindowSystemMenuHint)
                 mwmhints.decorations |= MWM_DECOR_MENU;