[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:
parent
2cd25257d9
commit
76b4d8f2d5
1 changed files with 4 additions and 0 deletions
|
@ -273,6 +273,10 @@ KWIN_EXPORT int kdemain(int argc, char * argv[])
|
||||||
|
|
||||||
if (parser.isSet(xwaylandOption)) {
|
if (parser.isSet(xwaylandOption)) {
|
||||||
a.setOperationMode(KWin::Application::OperationModeXwayland);
|
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
|
// perform sanity checks
|
||||||
|
|
Loading…
Reference in a new issue