data-device: Clear drag focus when we end the drag-and-drop

Otherwise we'll see a spurious leave event when we start the next dnd.
This commit is contained in:
Kristian Høgsberg 2012-04-13 10:39:24 -04:00
parent b68b5e9e0c
commit 74aec06625

View file

@ -243,6 +243,8 @@ data_device_end_drag_grab(struct wl_input_device *device)
wl_list_remove(&device->drag_icon_listener.link);
}
drag_grab_focus(&device->drag_grab, NULL, 0, 0);
wl_input_device_end_pointer_grab(device);
device->drag_data_source = NULL;