mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
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:
@@ -293,13 +293,15 @@ _queue_draw (GtkClapperGLWidget * clapper_widget)
|
||||
|
||||
_apply_par (clapper_widget);
|
||||
|
||||
GTK_CLAPPER_GL_WIDGET_UNLOCK (clapper_widget);
|
||||
|
||||
gtk_widget_queue_resize (GTK_WIDGET (clapper_widget));
|
||||
} else {
|
||||
GTK_CLAPPER_GL_WIDGET_UNLOCK (clapper_widget);
|
||||
|
||||
gtk_gl_area_queue_render (GTK_GL_AREA (clapper_widget));
|
||||
}
|
||||
|
||||
GTK_CLAPPER_GL_WIDGET_UNLOCK (clapper_widget);
|
||||
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user