summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-06-10 12:03:54 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2015-06-10 19:11:59 +0100
commit60df86a6fbc0f5893fff182b4308c2ee4d679569 (patch)
tree6030a7ff67ca52aa72e30fbfa7f9031cb0f2788a
parenta561b1efb5518f69c56ac274fdd46ff72846dcac (diff)
downloadclutter-gtk-60df86a6fbc0f5893fff182b4308c2ee4d679569.tar.gz
embed: Use the GDK visual from Clutter
Instead of relying on the widget one. This is similar to what we do when running with the X11 backend. https://bugzilla.gnome.org/show_bug.cgi?id=747489
-rw-r--r--clutter-gtk/gtk-clutter-embed.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clutter-gtk/gtk-clutter-embed.c b/clutter-gtk/gtk-clutter-embed.c
index 64cc8b6..80b5839 100644
--- a/clutter-gtk/gtk-clutter-embed.c
+++ b/clutter-gtk/gtk-clutter-embed.c
@@ -327,6 +327,13 @@ gtk_clutter_embed_realize (GtkWidget *widget)
gint attributes_mask;
gint border_width;
+#if defined(CLUTTER_WINDOWING_GDK)
+ if (clutter_check_windowing_backend (CLUTTER_WINDOWING_GDK))
+ {
+ GdkVisual *visual = clutter_gdk_get_visual ();
+ gtk_widget_set_visual (widget, visual);
+ }
+#endif
#if defined(GDK_WINDOWING_X11) && defined(CLUTTER_WINDOWING_X11)
if (clutter_check_windowing_backend (CLUTTER_WINDOWING_X11))
{