xwm: selection init

This commit is contained in:
Tony Crisci 2017-11-20 08:51:40 -05:00
parent 3880fb0a53
commit 444257b6b1
3 changed files with 68 additions and 5 deletions

View file

@ -43,6 +43,9 @@ const char *atom_map[ATOM_LAST] = {
"_NET_WM_STATE_MAXIMIZED_VERT",
"_NET_WM_STATE_MAXIMIZED_HORZ",
"WM_STATE",
"CLIPBOARD",
"_WL_SELECTION",
"CLIPBOARD_MANAGER",
};
/* General helpers */
@ -1339,6 +1342,8 @@ struct wlr_xwm *xwm_create(struct wlr_xwayland *wlr_xwayland) {
xwm_set_net_active_window(xwm, XCB_WINDOW_NONE);
xwm_selection_init(xwm);
xwm->compositor_surface_create.notify = handle_compositor_surface_create;
wl_signal_add(&wlr_xwayland->compositor->events.create_surface,
&xwm->compositor_surface_create);