Port remainind XSync calls to XCB variant

This commit is contained in:
Martin Gräßlin 2013-09-10 11:03:28 +02:00
parent 4173de1164
commit 85ea66f736
2 changed files with 3 additions and 2 deletions

View file

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

View file

@ -21,6 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// own
#include "tabboxhandler.h"
#include <kwinglobals.h>
#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)