diff --git a/src/compositor/meta-window-actor-wayland.c b/src/compositor/meta-window-actor-wayland.c index 78f5266d4..7ed5163d2 100644 --- a/src/compositor/meta-window-actor-wayland.c +++ b/src/compositor/meta-window-actor-wayland.c @@ -302,11 +302,19 @@ meta_window_actor_wayland_get_scanout_candidate (MetaWindowActor *actor) MetaWindow *window; if (clutter_actor_get_last_child (CLUTTER_ACTOR (self)) != surface_container) - return NULL; + { + meta_topic (META_DEBUG_RENDER, + "Top child of window-actor not a surface"); + return FALSE; + } child_actor = clutter_actor_get_last_child (surface_container); if (!child_actor) - return NULL; + { + meta_topic (META_DEBUG_RENDER, + "No surface-actor for window-actor"); + return FALSE; + } topmost_surface_actor = META_SURFACE_ACTOR (child_actor); @@ -314,7 +322,11 @@ meta_window_actor_wayland_get_scanout_candidate (MetaWindowActor *actor) if (!meta_surface_actor_is_opaque (topmost_surface_actor) && !(meta_window_is_fullscreen (window) && clutter_actor_get_n_children (surface_container) == 1)) - return NULL; + { + meta_topic (META_DEBUG_RENDER, + "Window-actor is not opaque"); + return FALSE; + } return topmost_surface_actor; } diff --git a/src/compositor/meta-window-actor-x11.c b/src/compositor/meta-window-actor-x11.c index efa8c8ee0..71fde8d38 100644 --- a/src/compositor/meta-window-actor-x11.c +++ b/src/compositor/meta-window-actor-x11.c @@ -257,14 +257,26 @@ meta_window_actor_x11_get_scanout_candidate (MetaWindowActor *actor) surface_actor = meta_window_actor_get_surface (actor); if (!surface_actor) - return NULL; + { + meta_topic (META_DEBUG_RENDER, + "No surface-actor for window-actor"); + return NULL; + } if (CLUTTER_ACTOR (surface_actor) != clutter_actor_get_last_child (CLUTTER_ACTOR (actor))) - return NULL; + { + meta_topic (META_DEBUG_RENDER, + "Top child of window-actor not a surface"); + return NULL; + } if (!meta_window_actor_is_opaque (actor)) - return NULL; + { + meta_topic (META_DEBUG_RENDER, + "Window-actor is not opaque"); + return NULL; + } return surface_actor; }