xwm: only take clipboard if window is focused

This commit is contained in:
Tony Crisci 2017-11-22 14:58:36 -05:00
parent fc17c74516
commit e3542d879d
3 changed files with 20 additions and 6 deletions

View file

@ -174,6 +174,7 @@ void xwm_surface_activate(struct wlr_xwm *xwm,
xwm_send_focus_window(xwm, xsurface);
xwm->focus_surface = xsurface;
xwm_set_selection_owner(xwm);
xcb_flush(xwm->xcb_conn);
}