Ilya Fedin
ea4c67408e
Revert "Workaround Wayland popup menu bug."
...
This reverts commit 8db6dcf125 .
2023-09-26 12:11:33 +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
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
19d044a212
Move TitleControlsLayout from ui_platform_utility to ui_platform_window_title
2023-07-19 14:42:06 +04:00
Ilya Fedin
6419b54383
Extract controls side deduction code
2023-07-19 14:42:06 +04:00
Ilya Fedin
b9aa8a17d4
Allow to pass new title controls layout value to notifier
...
In case the getter is trivial (has only one implementation)
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
John Preston
5173dfa1ca
Workaround for emoji selector in popup menu on Windows.
2023-03-17 14:21:42 +04:00
John Preston
c4838f5899
Fix native pointers staleness in macOS RpWindow.
2023-02-14 19:39:24 +04:00
John Preston
a76cdf7edf
Allow arbitrary paddings around PopupMenu.
2022-08-17 21:03:06 +03: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
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
John Preston
f17320171a
Allow disabling system resize for a window on macOS.
2022-03-08 18:17:39 +04:00
Ilya Fedin
43efd9e307
Use custom xdg-shell for shadows on Wayland
2021-06-10 23:39:38 +04:00
John Preston
e9fcbfcbac
Remove 'StartTranslucentPaint'.
2021-05-18 17:04:45 +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
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
f749fc7349
Use Q_OS_UNIX instead of Q_OS_LINUX since linux-specific code can be used also on *BSD/Haiku
2020-06-13 16:08:39 +04:00
John Preston
33ea14969e
Use StartTranslucentPaint only on OpenGL widgets on macOS.
2020-01-29 18:54:25 +03: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
John Preston
85c83003ca
Initial commit.
2019-09-17 17:48:58 +03:00