mirror of
https://github.com/brl/mutter.git
synced 2024-11-11 00:26:40 -05:00
pointer: Fix crash when we have the pointer over nothing during a popup grab
This commit is contained in:
parent
bbe3641844
commit
594b15abf1
@ -488,7 +488,7 @@ popup_grab_focus (MetaWaylandPointerGrab *grab,
|
|||||||
|
|
||||||
/* Popup grabs are in owner-events mode (ie, events for the same client
|
/* Popup grabs are in owner-events mode (ie, events for the same client
|
||||||
are reported as normal) */
|
are reported as normal) */
|
||||||
if (wl_resource_get_client (surface->resource) == popup_grab->grab_client)
|
if (surface && wl_resource_get_client (surface->resource) == popup_grab->grab_client)
|
||||||
default_grab_focus (grab, surface, event);
|
default_grab_focus (grab, surface, event);
|
||||||
else
|
else
|
||||||
meta_wayland_pointer_set_focus (grab->pointer, NULL);
|
meta_wayland_pointer_set_focus (grab->pointer, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user