From 8d3ee65269863ec64a74a6226f7f9ce709adaa97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 30 Apr 2015 09:23:27 +0200 Subject: [PATCH] [wayland] Don't set surface on Toplevel for non Xwayland-Clients For other clients we are only interested in the shell surfaces. --- wayland_server.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wayland_server.cpp b/wayland_server.cpp index 5c1c9b2f79..6b958b9f18 100644 --- a/wayland_server.cpp +++ b/wayland_server.cpp @@ -70,6 +70,10 @@ void WaylandServer::init(const QByteArray &socketName) // it's possible that a Surface gets created before Workspace is created return; } + if (surface->client() != xWaylandConnection()) { + // setting surface is only relevat for Xwayland clients + return; + } auto check = [surface] (const Toplevel *t) { return t->surfaceId() == surface->id(); };