diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e207cc..e335b76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -317,7 +317,6 @@ elseif(LINUX) qt_generate_wayland_protocol_client_sources(lib_ui FILES ${third_party_loc}/wayland/protocol/wayland.xml - ${third_party_loc}/wayland-protocols/stable/xdg-shell/xdg-shell.xml ) target_link_libraries(lib_ui diff --git a/ui/platform/linux/ui_linux_wayland_integration.cpp b/ui/platform/linux/ui_linux_wayland_integration.cpp index 455341b..461c29b 100644 --- a/ui/platform/linux/ui_linux_wayland_integration.cpp +++ b/ui/platform/linux/ui_linux_wayland_integration.cpp @@ -12,7 +12,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "base/qt_signal_producer.h" #include "qwayland-wayland.h" -#include "qwayland-xdg-shell.h" #include #include @@ -22,6 +21,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL using namespace QNativeInterface; using namespace QNativeInterface::Private; using namespace base::Platform::Wayland; +struct xdg_toplevel; namespace Ui { namespace Platform { @@ -103,8 +103,9 @@ void WaylandIntegration::showWindowMenu( return; } - xdg_toplevel_show_window_menu( - toplevel, + wl_proxy_marshal( + reinterpret_cast(toplevel), + 4, // XDG_TOPLEVEL_SHOW_WINDOW_MENU seat, native->lastInputSerial(), point.x(),