Commit graph

71 commits

Author SHA1 Message Date
Ilya Fedin
8a56048801 Ensure Wayland integration instance accessor doesn't leak 2023-06-17 15:05:24 +04:00
Ilya Fedin
1e89c19a03 Make window check in Wayland integration assert
This function was always requiring a window handle but after latest refactor it would fail silently
2023-06-10 17:07:49 +04:00
Ilya Fedin
cf906f14bd Store xdg-decoration support with std::optional 2023-05-30 19:01:26 +04:00
Ilya Fedin
627abc6728 C++ify wl_registry 2023-05-30 18:15:19 +04:00
Ilya Fedin
bf4cb33fab Use new base_linux_wayland_utilities 2023-05-25 21:07:08 +04:00
Ilya Fedin
1893967b4a Destroy Wayland integration before Wayland disconnection 2023-05-25 21:07:08 +04:00
Ilya Fedin
be0067a8c7 Switch Wayland integration to the new type safe Qt API
This also makes it possible to get a more right seat/serial pair
2023-05-15 12:29:01 +04:00
Ilya Fedin
e8857f5792 Get rid of DESKTOP_APP_DISABLE_DBUS_INTEGRATION 2023-05-14 12:12:19 +04:00
Ilya Fedin
8b0e9ea7b8 Fix the detection of xdg-decoration removal 2023-03-23 12:50:35 +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
Ilya Fedin
3f28dfa821 Replace custom waitForInterfaceAnnounce with wl_display_roundtrip 2022-11-11 11:39:36 +04:00
Ilya Fedin
95dd2c8465 Fix various spaces on end of lines 2022-09-02 19:26:53 +04:00
Ilya Fedin
f6e875c748 Use new Qt 6.4 API for window extents on Wayland 2022-09-02 19:26:53 +04:00
Ilya Fedin
47268d21ce Get wayland serial with new Qt 6.4 API 2022-09-02 19:26:53 +04:00
John Preston
a76cdf7edf Allow arbitrary paddings around PopupMenu. 2022-08-17 21:03:06 +03:00
John Preston
16708fd4f4 Revert "Allow buffer size overrides on Wayland EGL"
This reverts commit 303947c78c.
2022-08-08 09:40:29 +03:00
John Preston
c6727e673d Revert "Fix packaged build"
This reverts commit 4689c896e2.
2022-08-08 09:39:59 +03:00
Ilya Fedin
4689c896e2 Fix packaged build 2022-08-05 16:35:22 +04:00
Ilya Fedin
303947c78c Allow buffer size overrides on Wayland EGL 2022-08-04 10:12:36 +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
797c731d27 Migrate from kwayland to QtWaylandScanner 2022-06-03 20:10:48 +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
f17320171a Allow disabling system resize for a window on macOS. 2022-03-08 18:17:39 +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
9e4ffb81a5 Re-enable kwayland with Qt 6 2021-10-25 08:49:29 +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
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
kvtb
7f15ac5f0e fix compiling tdesktop with -DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION=ON 2021-08-09 12:24:12 +03:00
Ilya Fedin
7a71876124 Add possibility to enable native window frame to Ui::Window 2021-07-28 16:06:17 +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
e9fcbfcbac Remove 'StartTranslucentPaint'. 2021-05-18 17:04:45 +04: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