Skip to content

Commit

Permalink
fixed gdk_flush warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yetist authored and raveit65 committed May 14, 2018
1 parent f99b47b commit ce87b58
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion savers/floaters.c
Expand Up @@ -1109,7 +1109,10 @@ screen_saver_do_update_state (ScreenSaver *screen_saver)
*/
if (screen_saver->draw_ops_pending)
{
gdk_flush ();
GdkDisplay *display;

display = gtk_widget_get_display (GTK_WIDGET(screen_saver->drawing_area));
gdk_display_flush (display);
screen_saver->draw_ops_pending = FALSE;
}

Expand Down

0 comments on commit ce87b58

Please sign in to comment.