From d437aabe4da94dd1a19c318a6c1f88c2df94ed1a Mon Sep 17 00:00:00 2001 From: Yuuki Harano Date: Sat, 17 Oct 2020 03:51:15 +0900 Subject: [PATCH] Avoid gtk warnings on X * src/xwidget.c (xwidget_osr_draw_cb): Call it to avoid alloc_needes. --- src/xwidget.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xwidget.c b/src/xwidget.c index e929df0a496..c9fc706663b 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -510,6 +510,10 @@ xwidget_osr_draw_cb (GtkWidget *widget, cairo_t *cr, gpointer data) cairo_rectangle (cr, 0, 0, xv->clip_right, xv->clip_bottom); cairo_clip (cr); +#ifdef HAVE_PGTK + gtk_container_check_resize (GTK_CONTAINER (xw->widgetwindow_osr)); +#endif + gtk_widget_draw (xw->widget_osr, cr); return FALSE; } -- 2.39.5