diff options
Diffstat (limited to 'gtk/src/preview.c')
-rw-r--r-- | gtk/src/preview.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/src/preview.c b/gtk/src/preview.c index d3bd475da..e188a0413 100644 --- a/gtk/src/preview.c +++ b/gtk/src/preview.c @@ -1011,9 +1011,11 @@ preview_motion_cb( gint pw, ph, w, h, x, y; widget = GHB_WIDGET(ud->builder, "preview_image"); - parent = gtk_widget_get_window(widget); + //parent = gtk_widget_get_window(widget); + parent = widget->window; widget = GHB_WIDGET(ud->builder, "preview_hud"); - win = gtk_widget_get_window(widget); + //win = gtk_widget_get_window(widget); + win = widget->window; gtk_widget_show(widget); gdk_drawable_get_size(GDK_DRAWABLE(parent), &pw, &ph); gdk_drawable_get_size(GDK_DRAWABLE(win), &w, &h); |