Commit graph

180 commits

Author SHA1 Message Date
John Preston
2aa929dc91 Support custom semi-native title buttons on Windows. 2023-02-23 17:06:12 +04:00
John Preston
74ab66cfa9 Ignore native state updates for fullscreen. 2023-02-17 20:12:09 +04:00
John Preston
3b69ec499c Allow querying manual rounding radius of RpWindow. 2023-02-17 12:10:00 +04:00
John Preston
eb4d44ecd3 Fix window shadow on Linux for translucent windows. 2023-02-17 10:35:02 +04:00
John Preston
c4838f5899 Fix native pointers staleness in macOS RpWindow. 2023-02-14 19:39:24 +04:00
Ilya Fedin
a56831e8d0 Fix deprecated declarations warnings on macOS 2023-02-13 16:57:35 +04:00
John Preston
a3bcd2fac4 Fix rounding for maximized translucent windows. 2023-02-10 20:32:06 +04:00
John Preston
30dba7a215 Fix system buttons padding on Windows. 2023-02-10 16:42:55 +04:00
John Preston
e053e04607 Always round down point coords inside the window.
Or 3839 rounds to 1920 and the point falls outside of Qt window.
2023-02-06 12:42:57 +04:00
John Preston
30e7657859 Set system window title text on macOS. 2023-02-03 11:27:19 +04:00
John Preston
2404225e09 Allow window to receive WM_DPICHANGED in Qt. 2023-01-13 12:43:50 +04:00
23rd
22ceaae4ed Fixed drawing of long window titles on macOS. 2022-12-04 18:47:00 +03:00
Ilya Fedin
3f28dfa821 Replace custom waitForInterfaceAnnounce with wl_display_roundtrip 2022-11-11 11:39:36 +04:00
Ilya Fedin
95dd2c8465 Fix various spaces on end of lines 2022-09-02 19:26:53 +04:00
Ilya Fedin
f6e875c748 Use new Qt 6.4 API for window extents on Wayland 2022-09-02 19:26:53 +04:00
Ilya Fedin
47268d21ce Get wayland serial with new Qt 6.4 API 2022-09-02 19:26:53 +04:00
John Preston
a76cdf7edf Allow arbitrary paddings around PopupMenu. 2022-08-17 21:03:06 +03:00
Ilya Fedin
180b0bc517 Apply window extents early to avoid window size changes 2022-08-14 09:22:03 +04:00
John Preston
16708fd4f4 Revert "Allow buffer size overrides on Wayland EGL"
This reverts commit 303947c78c.
2022-08-08 09:40:29 +03:00
John Preston
c6727e673d Revert "Fix packaged build"
This reverts commit 4689c896e2.
2022-08-08 09:39:59 +03:00
Ilya Fedin
4689c896e2 Fix packaged build 2022-08-05 16:35:22 +04:00
Ilya Fedin
303947c78c Allow buffer size overrides on Wayland EGL 2022-08-04 10:12:36 +04:00
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
db2638cf60 Fix painting of bottom left shadow corner 2022-06-25 07:12:42 +04:00
Ilya Fedin
c499a437f8 Fix a crash while updating window extents 2022-06-24 20:59:03 +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
b90d7ee27a Merge remote-tracking branch 'origin/master' into HEAD 2022-06-23 09:43:23 +04:00
Ilya Fedin
8e5c8c96bd Fix a crash while setting FramelessWindowHint 2022-06-23 03:46:20 +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
941dc48366 Change FramelessWindowHint not only when the window is shown 2022-06-22 10:48:59 +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
Ilya Fedin
94c5754b42 Hide titlebar & border when there are no controls
If the user doesn't want to control the window with buttons, then he moves/resizes the window in other way as well
2022-06-13 13:47:26 +04:00
Ilya Fedin
8e35ae4407 Implement round window with Qt-based custom decorations 2022-06-07 18:45:25 +04:00