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
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
23rd
cc79439fee
Fixed RpWindow dragging on macOS with Qt 6.2.
2021-10-31 08:58:44 +03:00
John Preston
7b4114d907
Fix RpWindow drag-by-title on macOS with Qt 6.2.
2021-10-26 19:32:24 +04:00
Ilya Fedin
9e4ffb81a5
Re-enable kwayland with Qt 6
2021-10-25 08:49:29 +04:00
John Preston
674391524b
Fix build with Qt 6.2 on macOS.
2021-10-21 19:45:01 +04:00
Ilya Fedin
87b121069f
Add checks for libraries not ported to Qt 6 yet
2021-10-21 08:42:53 +04:00
Ilya Fedin
64e40913df
Use new Qt 6 adapters
2021-10-19 19:28:45 +04:00
Ilya Fedin
8e5d35229a
Simple replacements for Qt 6
...
QStringRef -> QStringView
QTextCursor constructor accepts a QTextDocument only
Some headers are moved, so paths are removed
QMatrix -> QTransform
Methods returning qsizetype are wrapped to int()s to allow compiler to deduce the type
2021-10-19 17:06:25 +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
Ilya Fedin
15d1560e41
Move glibmm_helper include to others glib-related
2021-09-12 00:04:49 +03:00
Ilya Fedin
af1429cb87
Use XSettings + XDP instead of gtk for title controls layout
2021-09-05 17:40:34 +03:00