XCB: set wm protocol if connection succeded

This commit is contained in:
Linus Dierheimer
2022-01-05 15:02:54 +01:00
parent 7a3bf2f77d
commit 59e61f53e1
+4
View File
@@ -124,6 +124,10 @@ void ffdsConnectXcb(const FFinstance* instance, FFDisplayServerResult* result)
ffxcb_disconnect(connection);
dlclose(xcb);
//If wayland hasn't set this, connection failed for it. So we are running only a X Server, not XWayland.
if(result->wmProtocolName.length == 0)
ffStrbufSetS(&result->wmProtocolName, FF_DISPLAYSERVER_PROTOCOL_X11);
}
#else