Commit graph

21 commits

Author SHA1 Message Date
John Preston
aa39793a91 Attempt to fix window geometry restore on Windows. 2024-01-12 13:53:22 +04:00
John Preston
cd4e9d378c Allow to use ForceFullRepaintSync on Linux. 2023-11-22 12:17:32 +04:00
John Preston
fee301f941 Use plain windows.h now it doesn't define small. 2023-11-13 18:59:56 +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
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
John Preston
5173dfa1ca Workaround for emoji selector in popup menu on Windows. 2023-03-17 14:21:42 +04:00
Ilya Fedin
95dd2c8465 Fix various spaces on end of lines 2022-09-02 19:26:53 +04: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
3255de2e5a Use native system window menu with custom titlebar on Windows 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
50a0e7da64 Add IsOverlapped method 2021-04-20 15:35:31 +03:00
John Preston
77856c3a21 Fix build on Windows. 2021-02-04 18:45:35 +04:00
Ilya Fedin
6500dc9610 Qt-based title widget ported from tdesktop 2021-02-04 18:12:14 +04:00
Ilya Fedin
0c28556f46 Synchronize SetWindowLongPtr calls 2020-10-26 16:55:19 +03:00
Ilya Fedin
e5a527b5ef Adapt for building with MinGW and 64-bit 2020-05-12 15:07:37 +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
Renamed from ui/platform/win/ui_platform_utility_win.cpp (Browse further)