[mutter/gbsneto/cleanup-x11-from-window-actor: 7/10] window-actor: Add assertion about client type



commit c741c17aa517f6bb67c15f7c3eff8ea0e7fb5779
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Dec 22 00:34:50 2018 -0200

    window-actor: Add assertion about client type
    
    meta_window_actor_queue_frame_drawn() is only called on
    X11 code paths, and only works on X11 windows. Thus, it
    is a programming error to call it and not pass an X11
    window actor.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/368

 src/compositor/meta-window-actor.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 57c7851ff..bd41eed93 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -870,6 +870,7 @@ void
 meta_window_actor_queue_frame_drawn (MetaWindowActor *self,
                                      gboolean         no_delay_frame)
 {
+  g_assert (META_IS_WINDOW_ACTOR_X11 (self));
 
   if (meta_window_actor_is_destroyed (self))
     return;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]