From 76b4d8f2d5487ca3d66a554a8c2b75e5b596b9a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 9 Jan 2015 16:14:59 +0100 Subject: [PATCH] [xwayland] Claim selection WM_S0 Xwayland expects the window manager to claim WM_S0, no matter which display number is really used. --- main_wayland.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main_wayland.cpp b/main_wayland.cpp index 63c6431058..d47ebeffd0 100644 --- a/main_wayland.cpp +++ b/main_wayland.cpp @@ -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