summaryrefslogtreecommitdiff
path: root/savers/floaters.c
diff options
context:
space:
mode:
Diffstat (limited to 'savers/floaters.c')
-rw-r--r--savers/floaters.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/savers/floaters.c b/savers/floaters.c
index fc83fae..94b04fc 100644
--- a/savers/floaters.c
+++ b/savers/floaters.c
@@ -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;
}