wayland/data-device: Do not unset focus on drag start

On drag start, `data_device_start_drag()` issues a keyboard grab, which
in turn will unset the current input focus.

There is not need to unset the input focus in `data_device_start_drag()`
as this is redone in `meta_wayland_keyboard_start_grab()`

https://gitlab.gnome.org/GNOME/mutter/issues/747
This commit is contained in:
Olivier Fourdan 2019-09-02 13:50:39 +02:00 committed by Jonas Ådahl
parent 14c706e51b
commit 82c92177ff

View File

@ -1315,12 +1315,9 @@ data_device_start_drag (struct wl_client *client,
surface, drag_source, icon_surface);
if (meta_wayland_seat_has_keyboard (seat))
{
meta_wayland_keyboard_set_focus (seat->keyboard, NULL);
meta_wayland_keyboard_start_grab (seat->keyboard,
&seat->data_device.current_grab->keyboard_grab);
}
}
static void
selection_data_source_destroyed (gpointer data, GObject *object_was_here)