[gtk+] GtkGLArea: Correctly position/size input window on realize



commit ef9ac24e95ea61b2bd43a41e533fdc426ae8e1bd
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Nov 3 13:35:00 2014 +0100

    GtkGLArea: Correctly position/size input window on realize

 gtk/gtkglarea.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkglarea.c b/gtk/gtkglarea.c
index d0882b7..3b030f5 100644
--- a/gtk/gtkglarea.c
+++ b/gtk/gtkglarea.c
@@ -268,6 +268,8 @@ gtk_gl_area_realize (GtkWidget *widget)
 
   GTK_WIDGET_CLASS (gtk_gl_area_parent_class)->realize (widget);
 
+  gtk_widget_get_allocation (widget, &allocation);
+
   attributes.window_type = GDK_WINDOW_CHILD;
   attributes.x = allocation.x;
   attributes.y = allocation.y;


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