mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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:
parent
14c706e51b
commit
82c92177ff
@ -1315,11 +1315,8 @@ 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);
|
||||
}
|
||||
meta_wayland_keyboard_start_grab (seat->keyboard,
|
||||
&seat->data_device.current_grab->keyboard_grab);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user