mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
pointer: Make nested grabs work
Something noticed on code inspection. If we have a popup grab, it will always return FALSE. The code here clearly meant to continue if we had an existing popup grab from an existing client.
This commit is contained in:
parent
be16c2fe71
commit
756a412436
@ -589,15 +589,13 @@ meta_wayland_pointer_start_popup_grab (MetaWaylandPointer *pointer,
|
||||
|
||||
if (pointer->grab != &pointer->default_grab)
|
||||
{
|
||||
if (pointer->grab->interface == &popup_grab_interface)
|
||||
{
|
||||
grab = (MetaWaylandPopupGrab*)pointer->grab;
|
||||
if (pointer->grab->interface != &popup_grab_interface)
|
||||
return FALSE;
|
||||
|
||||
if (wl_resource_get_client (surface->resource) != grab->grab_client)
|
||||
return FALSE;
|
||||
}
|
||||
grab = (MetaWaylandPopupGrab*)pointer->grab;
|
||||
|
||||
return FALSE;
|
||||
if (wl_resource_get_client (surface->resource) != grab->grab_client)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (pointer->grab == &pointer->default_grab)
|
||||
|
Loading…
Reference in New Issue
Block a user