diff options
| -rw-r--r-- | src/osd/sdl/dview.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osd/sdl/dview.c b/src/osd/sdl/dview.c index 52aad0702d0..1aadd8baef1 100644 --- a/src/osd/sdl/dview.c +++ b/src/osd/sdl/dview.c @@ -227,7 +227,11 @@ static void dview_size_allocate(GtkWidget *wdv, GtkAllocation *allocation) debug_view_set_visible_position(dv->view, pos); debug_view_set_visible_size(dv->view, vsize); +#ifdef GTK_WIDGET_REALIZED if(GTK_WIDGET_REALIZED(wdv)) +#else + if(gtk_widget_get_realized(wdv)) +#endif gdk_window_move_resize(wdv->window, allocation->x, allocation->y, allocation->width, allocation->height); |
