From 85ea66f7365437afd322cd689a6acc5245dc19f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 10 Sep 2013 11:03:28 +0200 Subject: [PATCH] Port remainind XSync calls to XCB variant --- glxbackend.cpp | 2 +- tabbox/tabboxhandler.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/glxbackend.cpp b/glxbackend.cpp index 455da3312f..aff9215ceb 100644 --- a/glxbackend.cpp +++ b/glxbackend.cpp @@ -476,7 +476,7 @@ void GlxBackend::screenGeometryChanged(const QSize &size) XMoveResizeWindow(display(), window, 0, 0, size.width(), size.height()); overlayWindow()->setup(window); - XSync(display(), false); + Xcb::sync(); glXMakeCurrent(display(), glxWindow, ctx); glViewport(0, 0, size.width(), size.height()); diff --git a/tabbox/tabboxhandler.cpp b/tabbox/tabboxhandler.cpp index 5c090ff17a..d5e5141fd4 100644 --- a/tabbox/tabboxhandler.cpp +++ b/tabbox/tabboxhandler.cpp @@ -21,6 +21,7 @@ along with this program. If not, see . // own #include "tabboxhandler.h" #include +#include "xcbutils.h" // tabbox #include "clientmodel.h" #include "declarative.h" @@ -242,7 +243,7 @@ void TabBoxHandler::show() } } if (d->config.isHighlightWindows()) { - XSync(QX11Info::display(), false); + Xcb::sync(); // TODO this should be // QMetaObject::invokeMethod(this, "updateHighlightWindows", Qt::QueuedConnection); // but we somehow need to cross > 1 event cycle (likely because of queued invocation in the effects)