Commit graph

43 commits

Author SHA1 Message Date
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
John Preston
0aadf4ca7d Correctly minimize window. 2020-01-02 14:57:22 +03:00
John Preston
40d7581c36 Allow different custom window title styles. 2019-10-14 14:42:21 +04:00
John Preston
c0ce14bb68 Allow fixed windows with custom title bar. 2019-10-14 13:57:03 +04:00
John Preston
11aa7bcd4e Support title-aware Window::setGeometry. 2019-09-30 11:58:45 +03:00
John Preston
d5c9ad77a9 Support nice Ui::Window under Windows. 2019-09-26 09:53:57 +03:00