[wayland] Don't set surface on Toplevel for non Xwayland-Clients
For other clients we are only interested in the shell surfaces.
This commit is contained in:
parent
28d314a487
commit
8d3ee65269
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,10 @@ void WaylandServer::init(const QByteArray &socketName)
|
||||||
// it's possible that a Surface gets created before Workspace is created
|
// it's possible that a Surface gets created before Workspace is created
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (surface->client() != xWaylandConnection()) {
|
||||||
|
// setting surface is only relevat for Xwayland clients
|
||||||
|
return;
|
||||||
|
}
|
||||||
auto check = [surface] (const Toplevel *t) {
|
auto check = [surface] (const Toplevel *t) {
|
||||||
return t->surfaceId() == surface->id();
|
return t->surfaceId() == surface->id();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue