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
This commit is contained in:
Martin Flöser 2017-08-24 20:47:02 +02:00
parent 28534e3664
commit 6f4c02ce10

View file

@ -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);