Commit graph

255 commits

Author SHA1 Message Date
John Preston
6e924177b7 Fix build with Xcode and GCC. 2024-05-02 12:53:57 +04:00
John Preston
86dc01e9bc Use custom-adjusted font metrics. 2024-05-02 11:32:44 +04:00
John Preston
0999c7f70e Fix window shadow on Linux. 2024-03-19 10:52:39 +04:00
John Preston
0e175983d9 Fix title updating in complex windows. 2024-03-14 14:27:19 +04:00
Ilya Fedin
a1a6676eab Get rid of glibmm 2024-03-13 16:33:12 +04:00
Ilya Fedin
6bce493029 Enter from event loop in the portal title controls layout watcher 2024-03-13 09:16:05 +04:00
John Preston
a2c2d92cda Fix possible crash. 2024-01-18 22:21:44 +04:00
John Preston
30b22ace0b Use new cloaking workaround for non-fullscreen only. 2024-01-16 21:11:05 +04:00
John Preston
564e354c1d Wait longer after first paint, then show window. 2024-01-16 12:51:24 +04:00
John Preston
0db88bdec1 Fix build on Windows. 2024-01-16 12:08:38 +04:00
Ilya Fedin
683e532d15 Show RpWindow on Windows after initial paint
To avoid white flash
2024-01-16 00:08:12 -08:00
Ilya Fedin
b429fdcf98 Use vertical metrics for vertical borders 2024-01-16 12:07:44 +04:00
John Preston
aa39793a91 Attempt to fix window geometry restore on Windows. 2024-01-12 13:53:22 +04:00
Ilya Fedin
8c01f3f0fa Unscale DirectManipulation values 2023-12-31 07:56:15 +00:00
Ilya Fedin
fb3d00bab0 Do pixel<->angle delta conversion right 2023-12-31 07:56:15 +00:00
John Preston
6b5524b63c Allow clearing system buttons state on Windows. 2023-12-04 14:18:49 +04:00
John Preston
4f2a33ea70 Allow disabling window title shadow on Windows. 2023-12-04 14:18:35 +04:00
John Preston
cd4e9d378c Allow to use ForceFullRepaintSync on Linux. 2023-11-22 12:17:32 +04:00
Ilya Fedin
d86bd3f493 Add QHighDpiScaling support on Wayland via QPA API 2023-11-21 09:08:01 +04:00
Ilya Fedin
e0c2500127 Cache QWindow native interface check in WindowMarginsSupported()
It couldn't be changed at runtime anyway
2023-11-16 14:09:27 +04:00
John Preston
fee301f941 Use plain windows.h now it doesn't define small. 2023-11-13 18:59:56 +04:00
John Preston
f9b24c7551 Fix build on Windows. 2023-11-13 11:26:07 +04:00
John Preston
d28afffcb9 Workaround menu click-through on macOS 14.1. 2023-11-07 12:39:17 +04:00
Ilya Fedin
1ae65d2cba Switch Qt 6.4+ back to OpenGL on macOS
The flickering bug seem to be fixed with the sRGB hint
2023-11-02 08:25:22 +04:00
John Preston
44f8d862ff Simplify TextStyle: remove linkFont/linkFontOver. 2023-10-12 10:53:02 +04:00
Ilya Fedin
ea4c67408e Revert "Workaround Wayland popup menu bug."
This reverts commit 8db6dcf125.
2023-09-26 12:11:33 +04:00
Ilya Fedin
f317f20ac8 Try to allow native window frame on Wayland for everyone 2023-09-21 12:47:40 +04:00
Ilya Fedin
caff63f284 Get Wayland window menu out of DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION 2023-09-21 09:12:11 +04:00
Ilya Fedin
ba73905c11 Make use of templated XDP::ReadSetting 2023-09-18 19:46:05 +04:00
Ilya Fedin
9bf89715b1 Make use of the new XDP::SettingWatcher constructor 2023-09-18 12:41:17 +04:00
Ilya Fedin
94f9bbefd7 Re-use the Wayland AutoDestroyer's lifetime in WaylandIntegration::Private 2023-09-16 07:21:04 +04:00
Ilya Fedin
8d005bc820 Change #if-ery to be more in line with cmake logic (LINUX = NOT WIN32 AND NOT APPLE) 2023-09-15 17:58:17 +04:00
Ilya Fedin
b2293c86e1 Use brackets include for QtWaylandScanner-generated headers 2023-09-07 23:09:26 +04:00
Ilya Fedin
dce16a3de2 Use not_null for WaylandIntegration::showWindowMenu window handle 2023-09-07 23:09:26 +04:00
Ilya Fedin
9af842571d Don't call xdg-shell code generation just for xdg_toplevel_show_window_menu 2023-09-07 23:09:26 +04:00
Ilya Fedin
bcf88b9065 Fix window extents terminology
Extents is a synonym of size but we're setting not window size.
2023-08-29 07:47:50 +02:00
Ilya Fedin
2dd3add5b3 Move code not really depending on Wayland-specific dependencies out of WaylandIntegration 2023-08-29 07:47:50 +02:00
Ilya Fedin
fd55e9b71b Adapt WindowHelper::updateMargins for Windows 11 native resize 2023-08-14 12:20:27 +04:00
Ilya Fedin
cbb9e0bbde Make WindowHelper::updateMargins multi-screen DPI aware 2023-08-14 12:20:27 +04:00
Ilya Fedin
e66ad9c80c Avoid additional calculations in WindowHelper::updateMargins 2023-08-14 12:20:27 +04:00
Ilya Fedin
92cb6f6809 Remove unused variables from WindowHelper::fixMaximizedWindow 2023-08-14 12:20:27 +04:00
Ilya Fedin
eeb2cbc69c Use QWindow's devicePixelRatio for top resize area 2023-08-11 11:49:00 +04:00
John Preston
2631d64a5f Use smaller top resize area. 2023-08-10 22:14:48 +02:00
Ilya Fedin
4a41346a64 Use native window resize on Windows 11 2023-08-10 20:01:11 +04:00
Ilya Fedin
8e31adc0af Remove unused variable 2023-08-10 20:01:11 +04:00
John Preston
91d43ea4b5 Provide (almost) correct modifiers in DirectManipulation. 2023-07-26 12:00:10 +04:00
Ilya Fedin
0f20eb152a Use string literal instead of const_string for QString constants 2023-07-20 21:33:16 +04:00
John Preston
8f03125ec1 Fix build with Xcode. 2023-07-20 10:19:51 +04:00
John Preston
ae46510920 Cancel system move if didn't start (macOS). 2023-07-20 09:59:54 +04:00
Ilya Fedin
da7f4fe425 Use new glibmm 2.78 API 2023-07-19 22:53:51 +04:00