Rename "wl_display" native resource
There is already a "wl_display" resource used by the client-side Wayland plugin. This is confusing, and would cause horrible bugs if ever a Wayland server was run as a client (the nested compositor usecase). Therefore, use "server_wl_display" for the name of the resource to be used on the server side. Change-Id: I30455177a154e89b98ad3620b6a14626b821e54c Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
This commit is contained in:
parent
b825c702ac
commit
5bb679590e
@ -264,7 +264,7 @@ static int resourceType(const QByteArray &key)
|
||||
QByteArrayLiteral("eglconfig"),
|
||||
QByteArrayLiteral("nativedisplay"),
|
||||
QByteArrayLiteral("display"),
|
||||
QByteArrayLiteral("wl_display")
|
||||
QByteArrayLiteral("server_wl_display")
|
||||
};
|
||||
const QByteArray *end = names + sizeof(names) / sizeof(names[0]);
|
||||
const QByteArray *result = std::find(names, end, key);
|
||||
|
Loading…
Reference in New Issue
Block a user