]> git.sesse.net Git - vlc/commitdiff
Qt: fix always on top deactivation on Windows
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 15 Feb 2015 22:49:32 +0000 (23:49 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 15 Feb 2015 22:51:23 +0000 (23:51 +0100)
See QTBUG-30359
Close #13646

contrib/src/qt/Win32-AOT.patch [new file with mode: 0644]
contrib/src/qt/rules.mak

diff --git a/contrib/src/qt/Win32-AOT.patch b/contrib/src/qt/Win32-AOT.patch
new file mode 100644 (file)
index 0000000..145235b
--- /dev/null
@@ -0,0 +1,11 @@
+--- qt/src/plugins/platforms/windows/qwindowswindow.cpp.old    2015-02-15 21:05:36.302825488 +0100
++++ qt/src/plugins/platforms/windows/qwindowswindow.cpp        2015-02-15 21:06:11.562824592 +0100
+@@ -651,7 +651,7 @@
+         } else if (flags & Qt::WindowStaysOnBottomHint) {
+             SetWindowPos(hwnd, HWND_BOTTOM, 0, 0, 0, 0, swpFlags);
+         } else if (frameChange) { // Force WM_NCCALCSIZE with wParam=1 in case of custom margins.
+-            SetWindowPos(hwnd, 0, 0, 0, 0, 0, swpFlags);
++            SetWindowPos(hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, swpFlags);
+         }
+         if (flags & (Qt::CustomizeWindowHint|Qt::WindowTitleHint)) {
+             HMENU systemMenu = GetSystemMenu(hwnd, FALSE);
index e411bcd5f323b9668dcf15108b58a703758ebac6..ebf6f7061899a40f8cc97eafb440f025900cdae6 100644 (file)
@@ -24,6 +24,7 @@ $(TARBALLS)/qt-$(QT_VERSION).tar.xz:
 qt: qt-$(QT_VERSION).tar.xz .sum-qt
        $(UNPACK)
        mv qtbase-opensource-src-$(QT_VERSION) qt-$(QT_VERSION)
+       $(APPLY) $(SRC)/qt/Win32-AOT.patch
        $(MOVE)
 
 ifdef HAVE_MACOSX