xwm: Set _NET_WM_CM_S0 instead of relying on the xwayland module to do it

Not sure why I made xwayland claim this selection, seem a little
awkward in retrospect.
diff --git a/src/xwayland/window-manager.c b/src/xwayland/window-manager.c
index 4c9d477..0619eca 100644
--- a/src/xwayland/window-manager.c
+++ b/src/xwayland/window-manager.c
@@ -1537,6 +1537,7 @@
 		{ "WM_STATE",		F(atom.wm_state) },
 		{ "WM_S0",		F(atom.wm_s0) },
 		{ "WM_CLIENT_MACHINE",	F(atom.wm_client_machine) },
+		{ "_NET_WM_CM_S0",	F(atom.net_wm_cm_s0) },
 		{ "_NET_WM_NAME",	F(atom.net_wm_name) },
 		{ "_NET_WM_PID",	F(atom.net_wm_pid) },
 		{ "_NET_WM_ICON",	F(atom.net_wm_icon) },
@@ -1692,6 +1693,11 @@
 				wm->wm_window,
 				wm->atom.wm_s0,
 				XCB_TIME_CURRENT_TIME);
+
+	xcb_set_selection_owner(wm->conn,
+				wm->wm_window,
+				wm->atom.net_wm_cm_s0,
+				XCB_TIME_CURRENT_TIME);
 }
 
 struct weston_wm *
diff --git a/src/xwayland/xwayland.h b/src/xwayland/xwayland.h
index c68a517..21b499e 100644
--- a/src/xwayland/xwayland.h
+++ b/src/xwayland/xwayland.h
@@ -85,6 +85,7 @@
 		xcb_atom_t		 wm_state;
 		xcb_atom_t		 wm_s0;
 		xcb_atom_t		 wm_client_machine;
+		xcb_atom_t		 net_wm_cm_s0;
 		xcb_atom_t		 net_wm_name;
 		xcb_atom_t		 net_wm_pid;
 		xcb_atom_t		 net_wm_icon;