Sink: unlock widget before setting queue

Let GTK handle setting queue resize/render on the widget. We are not accessing widget values at this time, so it can be unlocked. It will be locked back during the render.
This commit is contained in:
Rafostar
2021-03-06 19:16:28 +01:00
parent 9c12afbf80
commit 39da52dd62

View File

@@ -293,13 +293,15 @@ _queue_draw (GtkClapperGLWidget * clapper_widget)
_apply_par (clapper_widget); _apply_par (clapper_widget);
GTK_CLAPPER_GL_WIDGET_UNLOCK (clapper_widget);
gtk_widget_queue_resize (GTK_WIDGET (clapper_widget)); gtk_widget_queue_resize (GTK_WIDGET (clapper_widget));
} else { } else {
GTK_CLAPPER_GL_WIDGET_UNLOCK (clapper_widget);
gtk_gl_area_queue_render (GTK_GL_AREA (clapper_widget)); gtk_gl_area_queue_render (GTK_GL_AREA (clapper_widget));
} }
GTK_CLAPPER_GL_WIDGET_UNLOCK (clapper_widget);
return G_SOURCE_REMOVE; return G_SOURCE_REMOVE;
} }