aboutsummaryrefslogtreecommitdiff
path: root/xwayland/xwm.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-11-22 14:58:36 -0500
committerTony Crisci <tony@dubstepdish.com>2017-11-22 14:58:36 -0500
commite3542d879d50d6239ad4ca24b4d30520fef40a87 (patch)
tree477135919f311433b44feed140f7a9baa23ac096 /xwayland/xwm.c
parentfc17c74516c7c843f15426bca754a16f963ad348 (diff)
xwm: only take clipboard if window is focused
Diffstat (limited to 'xwayland/xwm.c')
-rw-r--r--xwayland/xwm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 407ee362..b0a24ff2 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -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);
}