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,7 +356,8 @@ destroy_selection_data_source(struct wl_listener *listener, void *data)
|
||||||
if (focus) {
|
if (focus) {
|
||||||
data_device = find_resource(&seat->drag_resource_list,
|
data_device = find_resource(&seat->drag_resource_list,
|
||||||
focus->client);
|
focus->client);
|
||||||
wl_data_device_send_selection(data_device, NULL);
|
if (data_device)
|
||||||
|
wl_data_device_send_selection(data_device, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue