aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-12-15 09:37:04 +0100
committeremersion <contact@emersion.fr>2017-12-15 09:37:04 +0100
commit76dcb694c142ca7ef288916076b446ae6f7baafa (patch)
tree94e261da577dd172e4d488065afa99b68daa28c3 /xwayland
parent5584f42c1ef1bbc4bf9f8184ddeeb7ac2d308aed (diff)
Send empty selection when clipboard is empty
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/selection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xwayland/selection.c b/xwayland/selection.c
index 6b55f473..062fbf9c 100644
--- a/xwayland/selection.c
+++ b/xwayland/selection.c
@@ -258,6 +258,7 @@ static void xwm_handle_selection_request(struct wlr_xwm *xwm,
if (xwm->seat->selection_source == NULL) {
wlr_log(L_DEBUG, "not handling selection request: "
"no selection source assigned to xwayland seat");
+ xwm_send_selection_notify(xwm, XCB_ATOM_NONE);
return;
}