mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-06 09:56:14 +00:00
x11: Clear X11 selection when we can't bridge the data type
This commit is contained in:
parent
f258a310bf
commit
4c61747a1f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue