Commit graph

55 commits

Author SHA1 Message Date
Ilya Fedin
ba7e3667d6 Adapt for Qt 6.4 device pixel ratio changes
QWidget::devicePixelRatioF represents backing store ratio and it's no more equal to native surface ratio
2022-07-19 19:44:06 +04:00
Ilya Fedin
3dbf58c45f Make window resize less lagged on Windows 2022-06-24 20:40:52 +04:00
John Preston
f40dc661b3 Revert "Simplify Windows native event filter."
With that commit the window frame on Windows 7 is still bugged :(
2022-06-24 20:40:23 +04:00
John Preston
7aedf7703f Revert "Make window resize less lagged on Windows"
This reverts commit b5da6e709d.
2022-06-22 20:23:24 +04:00
John Preston
1254ee00db Revert "Remove WS_CAPTION manually on Windows 7"
This reverts commit adf267a3a2.
2022-06-22 20:19:16 +04:00
Ilya Fedin
adf267a3a2 Remove WS_CAPTION manually on Windows 7 2022-06-21 20:38:09 +04:00
John Preston
dbc0e87c80 Fix possible crash in native event filter. 2022-06-20 18:08:42 +04:00
Ilya Fedin
6f856ce495 Use ScreenToClient for point convertion in WM_NCHITTEST 2022-06-18 11:01:00 +04:00
Ilya Fedin
30810032dc Revert "Make maximized geometry handling less bugged on Windows"
This reverts commit b05b7bd502.
2022-06-18 11:01:00 +04:00
Ilya Fedin
74cd53e1d1 Revert "Use native window resize on Windows 11"
This reverts commit 2e9aec239d.
2022-06-18 11:01:00 +04:00
Ilya Fedin
2246d16daf Revert "Use native window titlebar on Windows 11"
This reverts commit de5aa43f15.
2022-06-18 11:01:00 +04:00
Ilya Fedin
1679da738b ui_window_win: use value_or for _frameMargins 2022-06-14 07:00:45 +04:00
Ilya Fedin
ce35425670 Simplify Windows native event filter
There's no need for a global event filter as it checks for the window hwnd anyway. And, moreover, that creates problems as Qt filters some events to global event filters.
2022-06-13 14:04:17 +04:00
Ilya Fedin
a714fb0070 Refactor all ui_platform_utility functions to accept QWidget
Also let ShowWindowMenu accept the point and remove unused return data
2022-06-13 14:04:17 +04:00
Ilya Fedin
de5aa43f15 Use native window titlebar on Windows 11 2022-06-13 14:04:17 +04:00
Ilya Fedin
3255de2e5a Use native system window menu with custom titlebar on Windows 2022-06-13 14:04:17 +04:00
Ilya Fedin
2e9aec239d Use native window resize on Windows 11 2022-06-13 14:04:17 +04:00
Ilya Fedin
b05b7bd502 Make maximized geometry handling less bugged on Windows 2022-06-13 14:04:17 +04:00
Ilya Fedin
b5da6e709d Make window resize less lagged on Windows 2022-06-13 14:04:17 +04:00
Ilya Fedin
cdfa6ea2bf Handle DPI change on Windows to avoid the window be resized by Qt 2022-06-13 14:04:17 +04:00
Ilya Fedin
e72706f249 Make FindTaskbarWindow/IsTaskbarAutoHidden nodiscard 2022-06-13 14:04:17 +04:00
John Preston
47aed59fe9 Add Windows 11 snap layouts to custom TitleControls. 2022-01-18 18:37:35 +03:00
John Preston
d5d2ccb467 Disable Windows 11 rounded corners in FullScreen RpWindow. 2022-01-18 15:52:27 +03:00
John Preston
e5c8a6ebc4 Force correct separate title bar controls geometry. 2022-01-18 15:33:28 +03:00
John Preston
d7e47aa8a6 Support Windows 11 snap layouts in RpWindow title controls. 2022-01-18 12:59:37 +03:00
John Preston
220d683528 Fix Windows 11 title controls by additional padding. 2022-01-17 13:37:14 +03:00
John Preston
eaea768ca0 Fix HWND retrieval on Windows. 2021-12-22 10:23:07 +00:00
Ilya Fedin
9c7fe32830 Use winId to get window handle on Windows
There's no need to call QPlatformNativeInterface for that
2021-12-14 09:52:19 +04:00
John Preston
d9953c29b8 Don't set window border color on Windows 11.
When set it can only be opaque which doesn't look great.
When left default it is made of a semi-transparent shadow color.
2021-11-01 15:02:21 +04:00
John Preston
a827d9436e Use native rounded corners and title colors. 2021-09-28 21:06:29 +04:00
John Preston
2d53ef070f Allow to query RpWindow-s frame margins. 2021-09-16 10:26:34 +03:00
John Preston
ea570c07b6 Attempt to fix a crash in event loop nesting tracking. 2021-09-01 19:08:07 +03:00
John Preston
024f6fc1a9 Fix window frame glitches on Windows 7. 2021-08-10 15:04:30 +03:00
John Preston
5c0066958b Fix window shadow after native frame switch. 2021-08-10 13:12:21 +03:00
Ilya Fedin
98c7979e67 Get rid of _nativeFrame variable, _title->isHidden is enough 2021-08-08 09:18:15 +03:00
John Preston
868f2671fa Fix Ui::RpWidget geometry constraints. 2021-07-29 18:12:44 +03:00
Ilya Fedin
7a71876124 Add possibility to enable native window frame to Ui::Window 2021-07-28 16:06:17 +03:00
John Preston
3a51a253cd Use updated SafeLoadLibrary from lib_base. 2021-07-01 00:12:52 +03:00
John Preston
a009efc50d Fix expose bug for frameless OpenGL window. 2021-06-23 15:42:38 +04:00
John Preston
f646439624 Fix full screen OpenGL native child window. 2021-06-21 11:28:53 +04:00
John Preston
d07bee87cd Use LOG/DEBUG_LOG from lib_base. 2021-04-20 16:39:27 +04:00
Ilya Fedin
af41bff7e4 Build with QT_NO_KEYWORDS 2021-03-03 22:34:02 +04:00
John Preston
b65ff79393 Fix window title update on theme change. 2021-02-26 18:34:44 +04:00
Ilya Fedin
6a87d47697 Find taskbar window on the same monitor 2020-10-05 18:55:40 +03:00
John Preston
430d96dcd5 Remove assertion about taskbar position. 2020-10-01 17:33:30 +03:00
Ilya Fedin
86e141272a Fix showing autohidden taskbar with maximized window 2020-09-30 19:14:22 +03:00
John Preston
3d5108a878 Allow Ui::Window to become fullscreen. 2020-08-12 20:45:57 +04:00
John Preston
608b25bd32 Allow custom drag area for Ui::Window. 2020-08-12 17:34:40 +04:00
John Preston
09918f0133 Load uxtheme.dll dynamically. 2020-07-02 20:55:38 +04:00
Ilya Fedin
e5a527b5ef Adapt for building with MinGW and 64-bit 2020-05-12 15:07:37 +04:00