[xwayland] Claim selection WM_S0

Xwayland expects the window manager to claim WM_S0, no matter which
display number is really used.
This commit is contained in:
Martin Gräßlin 2015-01-09 16:14:59 +01:00
parent 2cd25257d9
commit 76b4d8f2d5

View file

@ -273,6 +273,10 @@ KWIN_EXPORT int kdemain(int argc, char * argv[])
if (parser.isSet(xwaylandOption)) {
a.setOperationMode(KWin::Application::OperationModeXwayland);
// create selection owner for WM_S0 - magic X display number expected by XWayland
KSelectionOwner owner("WM_S0");
owner.claim(true);
}
// perform sanity checks