Commit graph

253 commits

Author SHA1 Message Date
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
Ilya Fedin
797c731d27 Migrate from kwayland to QtWaylandScanner 2022-06-03 20:10:48 +04:00
Ilya Fedin
549edbe5c7 Make DisableSystemWindowResize consistent with getting winId on macOS 2022-06-02 14:30:18 +04:00
Ilya Fedin
a812ae65a4 Get rid of private QHighDpi usage 2022-06-02 14:30:18 +04:00
Ilya Fedin
c25c3e043c Adapt for XCB::IsSupportedByWM changes 2022-05-20 20:03:12 +04:00
Ilya Fedin
21a7adc03c Move shell integration initialization to lib_waylandshells 2022-05-19 15:43:12 +04:00
Ilya Fedin
941a10c8b0 Avoid QHighDpi::toNativePixels where possible 2022-05-19 11:50:39 +04:00
Ilya Fedin
bbad41e046 Get rid of __HAIKU__ checks
This is a leftover of something that wasn't finiched and looks like won't be finished. It also feels that's not a good idea to mix Linux and Haiku in the same file though...
2022-05-19 11:50:39 +04:00
Ilya Fedin
d1bf069916 Wait for interface announce before xdg-decoration check 2022-04-14 07:57:07 +04:00
Ilya Fedin
d5d8244abb Convert window extents to native pixels 2022-04-11 13:17:22 +04:00
Ilya Fedin
e09d5714e4 Use QPA API to set Wayland margins property 2022-04-11 13:17:22 +04:00
Ilya Fedin
d5a37c74b1 Try to use as less private APIs as possible to show window menu on Wayland 2022-04-11 09:43:09 +04:00
John Preston
d98c3d539b Allow moving window controls vertically. 2022-03-15 19:40:38 +04:00
John Preston
f17320171a Allow disabling system resize for a window on macOS. 2022-03-08 18:17:39 +04:00
John Preston
5f3e04a319 Fix build with GCC. 2022-02-28 23:25:03 +03:00
John Preston
5d475f54f0 Enlarge padded title controls hit area. 2022-02-28 19:12:26 +03:00
23rd
7bd7ada3ff Split qt_adapters to separated files. 2022-01-24 19:29:36 +03:00
John Preston
f0efb19713 Fix a crash on Windows < 11. 2022-01-19 09:30:40 +03:00
John Preston
45a8095aee Fix build with Xcode. 2022-01-18 21:52:04 +03: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
79d2052a83 Use default font in window title on macOS. 2022-01-17 15:04:39 +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
5195b7b45f Use XCB instead of QPlatformNativeInterface to get state of translucent windows support 2021-12-14 09:52:19 +04:00
Ilya Fedin
692fd7a3a2 Use generic XCB::GetRootWindow instead of QPlatformNativeInterface-based GetRootWindowFromQt 2021-12-14 09:52:19 +04:00