This repository has been archived on 2025-12-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
yachat/qt-patches/007-win-4.4-YaWindow minimize fix.patch

20 lines
932 B
Diff
Raw Permalink Normal View History

2025-12-25 01:37:49 +05:00
diff -urN qt-all-opensource-src-4.3.5.orig/src/gui/kernel/qwidget_win.cpp qt-all-opensource-src-4.3.5/src/gui/kernel/qwidget_win.cpp
--- qt-all-opensource-src-4.3.5.orig/src/gui/kernel/qwidget_win.cpp 2008-05-26 13:06:56.000000000 +0400
+++ qt-all-opensource-src-4.3.5/src/gui/kernel/qwidget_win.cpp 2008-09-04 18:24:04.000000000 +0400
@@ -260,11 +260,15 @@
if (popup)
flags |= Qt::WindowStaysOnTopHint; // a popup stays on top
+// mblsha: we disable this in order to get truly borderless windows
+// that could be minimized via taskbar button clicking
+#if 0
if (flags & (Qt::WindowMinMaxButtonsHint | Qt::WindowContextHelpButtonHint)) {
flags |= Qt::WindowSystemMenuHint;
flags |= Qt::WindowTitleHint;
flags &= ~Qt::FramelessWindowHint;
}
+#endif
if (sw < 0) { // get the (primary) screen size
sw = GetSystemMetrics(SM_CXSCREEN);