[totem] Ensure the GDK windows we paint on are native ones



commit e09459ec8961c8ccb5f2e21bd1b621281517fadb
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Apr 8 19:30:32 2010 +0100

    Ensure the GDK windows we paint on are native ones
    
    Use gdk_window_ensure_native() on the GDK windows we'll be
    using to paint videos.

 src/backend/bacon-video-widget-gst-0.10.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 79f4e18..33c94b3 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -564,6 +564,7 @@ bacon_video_widget_realize (GtkWidget * widget)
   GTK_WIDGET_CLASS (parent_class)->realize (widget);
 
   window = gtk_widget_get_window (widget);
+  gdk_window_ensure_native (window);
 
   /* Creating our video window */
   attributes.window_type = GDK_WINDOW_CHILD;
@@ -582,6 +583,7 @@ bacon_video_widget_realize (GtkWidget * widget)
 
   bvw->priv->video_window = gdk_window_new (window,
       &attributes, attributes_mask);
+  gdk_window_ensure_native (bvw->priv->video_window);
   gdk_window_set_user_data (bvw->priv->video_window, widget);
 
   gdk_color_parse ("black", &colour);



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