[clutter-gtk] embed: make wayland condition similar to gdk/x11 ones



commit 17aefc4e95602b696cfe88a78b447093f359804a
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Mon Sep 14 16:49:54 2015 +0100

    embed: make wayland condition similar to gdk/x11 ones
    
    This is mostly for the sake similarity.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755017

 clutter-gtk/gtk-clutter-embed.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/clutter-gtk/gtk-clutter-embed.c b/clutter-gtk/gtk-clutter-embed.c
index 062f3ec..1e6553b 100644
--- a/clutter-gtk/gtk-clutter-embed.c
+++ b/clutter-gtk/gtk-clutter-embed.c
@@ -271,7 +271,8 @@ gtk_clutter_embed_ensure_stage_realized (GtkClutterEmbed *embed)
       else
 #endif
 #if defined(GDK_WINDOWING_WAYLAND) && defined (CLUTTER_WINDOWING_WAYLAND)
-      if (clutter_check_windowing_backend (CLUTTER_WINDOWING_WAYLAND))
+      if (clutter_check_windowing_backend (CLUTTER_WINDOWING_WAYLAND) &&
+          GDK_IS_WAYLAND_WINDOW (window))
         {
           gtk_clutter_embed_ensure_surface (embed);
           clutter_wayland_stage_set_wl_surface (CLUTTER_STAGE (priv->stage),


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