wayland: Always send focus() when starting a pointer grab

Even if the focus is NULL, we may want the current grab focus code
to be run.

https://bugzilla.gnome.org/show_bug.cgi?id=762104
This commit is contained in:
Carlos Garnacho 2016-03-09 16:37:41 +01:00
parent 9b39325244
commit 82153ff23f

View File

@ -863,8 +863,7 @@ meta_wayland_pointer_start_grab (MetaWaylandPointer *pointer,
interface = pointer->grab->interface; interface = pointer->grab->interface;
grab->pointer = pointer; grab->pointer = pointer;
if (pointer->current) interface->focus (pointer->grab, pointer->current);
interface->focus (pointer->grab, pointer->current);
} }
void void