mirror of
https://github.com/brl/mutter.git
synced 2025-01-13 13:12:28 +00:00
window-actor/wayland: Return NULL instead FALSE in get_scanout_candidate
Fixes 2933ca9e1c
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2765>
This commit is contained in:
parent
3d618d5e45
commit
f9085b9f58
@ -307,7 +307,7 @@ meta_window_actor_wayland_get_scanout_candidate (MetaWindowActor *actor)
|
||||
{
|
||||
meta_topic (META_DEBUG_RENDER,
|
||||
"Top child of window-actor not a surface");
|
||||
return FALSE;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
clutter_actor_iter_init (&iter, surface_container);
|
||||
@ -324,7 +324,7 @@ meta_window_actor_wayland_get_scanout_candidate (MetaWindowActor *actor)
|
||||
{
|
||||
meta_topic (META_DEBUG_RENDER,
|
||||
"No surface-actor for window-actor");
|
||||
return FALSE;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
window = meta_window_actor_get_meta_window (actor);
|
||||
@ -333,7 +333,7 @@ meta_window_actor_wayland_get_scanout_candidate (MetaWindowActor *actor)
|
||||
{
|
||||
meta_topic (META_DEBUG_RENDER,
|
||||
"Window-actor is not opaque");
|
||||
return FALSE;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return topmost_surface_actor;
|
||||
|
Loading…
Reference in New Issue
Block a user