[vlc-commits] Qt: fix always on top deactivation on Windows

Jean-Baptiste Kempf git at videolan.org
Sun Feb 15 23:52:19 CET 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Feb 15 23:49:32 2015 +0100| [d88172ad44e3d5570df49d3a46638f123c80b72c] | committer: Jean-Baptiste Kempf

Qt: fix always on top deactivation on Windows

See QTBUG-30359
Close #13646

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d88172ad44e3d5570df49d3a46638f123c80b72c
---

 contrib/src/qt/Win32-AOT.patch |   11 +++++++++++
 contrib/src/qt/rules.mak       |    1 +
 2 files changed, 12 insertions(+)

diff --git a/contrib/src/qt/Win32-AOT.patch b/contrib/src/qt/Win32-AOT.patch
new file mode 100644
index 0000000..145235b
--- /dev/null
+++ b/contrib/src/qt/Win32-AOT.patch
@@ -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);
diff --git a/contrib/src/qt/rules.mak b/contrib/src/qt/rules.mak
index e411bcd..ebf6f70 100644
--- a/contrib/src/qt/rules.mak
+++ b/contrib/src/qt/rules.mak
@@ -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



More information about the vlc-commits mailing list