pointer: Don't use default_grab_focus in popup grabs
default_grab_focus tries to add implicit grab semantics where focus won't take effect if there's a pointer button down. This is not what we want for popup grabs at all, as it's perfectly valid to want to drag on a menu while there's a button down.
This commit is contained in:
parent
bb62f49c98
commit
c9d2a5bee2
@ -421,7 +421,7 @@ popup_grab_focus (MetaWaylandPointerGrab *grab,
|
||||
/* Popup grabs are in owner-events mode (ie, events for the same client
|
||||
are reported as normal) */
|
||||
if (surface && wl_resource_get_client (surface->resource) == popup_grab->grab_client)
|
||||
default_grab_focus (grab, surface);
|
||||
meta_wayland_pointer_set_focus (grab->pointer, surface);
|
||||
else
|
||||
meta_wayland_pointer_set_focus (grab->pointer, NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user