John Preston
aa39793a91
Attempt to fix window geometry restore on Windows.
2024-01-12 13:53:22 +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
Ilya Fedin
ea4c67408e
Revert "Workaround Wayland popup menu bug."
...
This reverts commit 8db6dcf125 .
2023-09-26 12:11:33 +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
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
0f20eb152a
Use string literal instead of const_string for QString constants
2023-07-20 21:33:16 +04:00
Ilya Fedin
19d044a212
Move TitleControlsLayout from ui_platform_utility to ui_platform_window_title
2023-07-19 14:42:06 +04:00
John Preston
8db6dcf125
Workaround Wayland popup menu bug.
...
When hiding a child popup first the app receives ApplicationDeactivate
event and in a short time (a couple of ms) ApplicationActivate.
But the first event hides all popups, so the parent popup gets closed too.
Delay handling of ApplicationDeactivate event in this specific case.
2023-07-12 22:05:12 +04:00
Ilya Fedin
6abad69ca6
Cache title controls layout value
...
So it's not requested on every window width change and etc...
2023-07-04 15:44:46 +04:00
Ilya Fedin
e8857f5792
Get rid of DESKTOP_APP_DISABLE_DBUS_INTEGRATION
2023-05-14 12:12:19 +04:00
John Preston
a76cdf7edf
Allow arbitrary paddings around PopupMenu.
2022-08-17 21:03:06 +03: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
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
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
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
d5d8244abb
Convert window extents to native pixels
2022-04-11 13:17:22 +04: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
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
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
Ilya Fedin
b600b6a3b3
Move custom xdg-shell integration code to wayland integration
2021-06-12 15:51:04 +04:00
Ilya Fedin
43efd9e307
Use custom xdg-shell for shadows on Wayland
2021-06-10 23:39:38 +04:00
Ilya Fedin
cedff6dbb5
Use new XCB::ReplyPointer
2021-05-31 22:51:23 +03:00
John Preston
d07bee87cd
Use LOG/DEBUG_LOG from lib_base.
2021-04-20 16:39:27 +04:00
Ilya Fedin
50a0e7da64
Add IsOverlapped method
2021-04-20 15:35:31 +03:00
Ilya Fedin
99089134e3
Add a method to clear transient parent
2021-04-05 10:16:46 +03:00
Ilya Fedin
fc563c0d7c
Remove unneeded constexprs in ui_utility_linux
2021-03-09 09:01:12 +04:00
Ilya Fedin
b82cdd7e58
Connect to title layout changes right in TitleControlsLayout on Linux
2021-03-09 08:56:34 +04:00
Ilya Fedin
4d865f8313
Fix spaces on ends of lines
2021-03-05 13:31:38 +04:00
John Preston
794ea13f7e
Fix build on Linux.
2021-03-02 17:27:58 +04:00
Ilya Fedin
ae2c25f6a2
Add Platform::IsX11 in forgotten place
2021-02-25 11:05:00 +04:00
Ilya Fedin
db65fca0aa
Use new Platform::IsX11
2021-02-24 21:37:31 +04:00
Ilya Fedin
7d18c8687b
Add Haiku title layout
2021-02-22 23:36:45 +04:00
Ilya Fedin
ed1bc07cc3
Add DESKTOP_APP_DISABLE_X11_INTEGRATION
2021-02-22 23:36:45 +04:00
Ilya Fedin
0b74c396cb
Use gtk integration from lib_base
2021-02-19 12:30:58 +04:00
Ilya Fedin
6500dc9610
Qt-based title widget ported from tdesktop
2021-02-04 18:12:14 +04:00
John Preston
d4c99701b5
Fix deprecation warnings on Qt 5.15.1.
2020-11-04 18:44:45 +03:00
Ilya Fedin
6451ae5074
Use Platform::IsWayland from lib_base
2020-06-03 11:34:08 +04:00
John Preston
4d2f17d9fc
Fix build on Linux.
2020-05-12 16:34:42 +04:00
Ilya Fedin
ef31d05da5
Wayland always support compositing
2020-05-12 09:40:25 +04:00
John Preston
26e6a3050c
Allow non-activatable window on Windows.
2020-01-07 15:16:00 +03:00
John Preston
d5c9ad77a9
Support nice Ui::Window under Windows.
2019-09-26 09:53:57 +03:00