mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00:00
data-device: Clean up slightly
This commit is contained in:
parent
3f375c9426
commit
02c31ac069
@ -399,18 +399,19 @@ meta_wayland_seat_set_selection (MetaWaylandSeat *seat,
|
|||||||
if (focus_client)
|
if (focus_client)
|
||||||
{
|
{
|
||||||
data_device = wl_resource_find_for_client (&seat->data_device_resource_list, focus_client);
|
data_device = wl_resource_find_for_client (&seat->data_device_resource_list, focus_client);
|
||||||
if (data_device && source)
|
if (data_device)
|
||||||
{
|
{
|
||||||
offer =
|
if (seat->selection_data_source)
|
||||||
meta_wayland_data_source_send_offer (seat->selection_data_source,
|
{
|
||||||
data_device);
|
offer = meta_wayland_data_source_send_offer (seat->selection_data_source, data_device);
|
||||||
wl_data_device_send_selection (data_device, offer);
|
wl_data_device_send_selection (data_device, offer);
|
||||||
}
|
}
|
||||||
else if (data_device)
|
else
|
||||||
{
|
{
|
||||||
wl_data_device_send_selection (data_device, NULL);
|
wl_data_device_send_selection (data_device, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (source)
|
if (source)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user