summaryrefslogtreecommitdiff
path: root/src/gs-fade.c
diff options
context:
space:
mode:
authoryetist <[email protected]>2018-05-12 13:39:47 +0800
committerraveit65 <[email protected]>2018-05-14 21:22:26 +0200
commitabaa88eaf6b495949199afd5886a519f89c39f36 (patch)
treeeddcfc03740c765d59344ff0fdf81b79455dfd81 /src/gs-fade.c
parentce87b58ea6349d0a2b48ae1f7f01d5783027f7f5 (diff)
downloadmate-screensaver-abaa88eaf6b495949199afd5886a519f89c39f36.tar.bz2
mate-screensaver-abaa88eaf6b495949199afd5886a519f89c39f36.tar.xz
Fixed some gdk deprecations
Diffstat (limited to 'src/gs-fade.c')
-rw-r--r--src/gs-fade.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gs-fade.c b/src/gs-fade.c
index f949ee5..156d7e2 100644
--- a/src/gs-fade.c
+++ b/src/gs-fade.c
@@ -174,6 +174,7 @@ xf86_whack_gamma (int screen,
{
Bool status;
struct GSGammaInfo *gamma_info;
+ GdkDisplay *display;
gamma_info = screen_priv->info;
@@ -243,7 +244,8 @@ xf86_whack_gamma (int screen,
# endif /* !HAVE_XF86VMODE_GAMMA_RAMP */
}
- gdk_flush ();
+ display = gdk_display_get_default ();
+ gdk_display_flush (display);
return status;
}