mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 09:08:33 +02:00
compositor: Don't send wl_surface.enter/leave if we didn't find a resource
This commit is contained in:
parent
240dfeb0fe
commit
c7814d2e98
1 changed files with 2 additions and 0 deletions
|
|
@ -1342,6 +1342,8 @@ weston_surface_update_output_mask(struct weston_surface *es, uint32_t mask)
|
|||
resource =
|
||||
find_resource_for_client(&output->resource_list,
|
||||
client);
|
||||
if (resource == NULL)
|
||||
continue;
|
||||
if (1 << output->id & entered)
|
||||
wl_surface_send_enter(&es->surface.resource, resource);
|
||||
if (1 << output->id & left)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue