diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2011-12-29 14:16:42 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-12-29 14:16:42 -0500 |
commit | 4c61747a1ffea8a1e199cbd314d6aed7b9f9c5b2 (patch) | |
tree | e5e22eab913b6af6a528757c9956312d17a73c76 | |
parent | f258a310bf1709729829f0090c3a5e460f9434e3 (diff) |
x11: Clear X11 selection when we can't bridge the data type
-rw-r--r-- | compositor/xserver-launcher.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compositor/xserver-launcher.c b/compositor/xserver-launcher.c index 35e5294..6cc86ed 100644 --- a/compositor/xserver-launcher.c +++ b/compositor/xserver-launcher.c @@ -505,6 +505,11 @@ wlsc_xserver_set_selection(struct wlsc_input_device *device) wm->selection_window, wm->atom.clipboard, XCB_TIME_CURRENT_TIME); + } else { + xcb_set_selection_owner(wm->conn, + XCB_ATOM_NONE, + wm->atom.clipboard, + XCB_TIME_CURRENT_TIME); } } |