mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-04 13:29:51 -05:00
data-device: Only send out NULL selection if we have a resource
If the current keyboard focus client doesn't have a resource for the data_device, don't send out the selection event.
This commit is contained in:
parent
cfd56ed4bc
commit
8f63e8013b
1 changed files with 2 additions and 1 deletions
|
|
@ -356,6 +356,7 @@ destroy_selection_data_source(struct wl_listener *listener, void *data)
|
|||
if (focus) {
|
||||
data_device = find_resource(&seat->drag_resource_list,
|
||||
focus->client);
|
||||
if (data_device)
|
||||
wl_data_device_send_selection(data_device, NULL);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue