summaryrefslogtreecommitdiff
path: root/savers/floaters.c
diff options
context:
space:
mode:
authoryetist <[email protected]>2018-05-08 17:56:01 +0800
committerraveit65 <[email protected]>2018-05-14 21:22:26 +0200
commitce87b58ea6349d0a2b48ae1f7f01d5783027f7f5 (patch)
tree552ebde14caeef9f822505bebfbb6bb1af8e1225 /savers/floaters.c
parentf99b47b92d4afe49cd0c7a46c50c63442d0c26fc (diff)
downloadmate-screensaver-ce87b58ea6349d0a2b48ae1f7f01d5783027f7f5.tar.bz2
mate-screensaver-ce87b58ea6349d0a2b48ae1f7f01d5783027f7f5.tar.xz
fixed gdk_flush warning
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;
}