From 6f4c02ce10186fe966bce1ead63144e845bc74fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Thu, 24 Aug 2017 20:47:02 +0200 Subject: [PATCH] Disable synced resizing for X11 clients on Xwayland Summary: The sync is broken due to updateXTime not working correctly on Wayland. As the broken sync results in a very unsmooth resize experience it is better to disable it for the time being. Once we have a solution for updateXTime it should be enabled again. BUG: 374881 Test Plan: Run nested kwin_wayland and resized Qt 4 application Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D7524 --- client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index 8b8f32e18e..cb09c00d90 100644 --- a/client.cpp +++ b/client.cpp @@ -1722,7 +1722,9 @@ void Client::getIcons() void Client::getSyncCounter() { - if (!Xcb::Extensions::self()->isSyncAvailable()) + // TODO: make sync working on XWayland + static const bool isX11 = kwinApp()->operationMode() == Application::OperationModeX11; + if (!Xcb::Extensions::self()->isSyncAvailable() || !isX11) return; Xcb::Property syncProp(false, window(), atoms->net_wm_sync_request_counter, XCB_ATOM_CARDINAL, 0, 1);