diff options
author | yetist <[email protected]> | 2018-05-12 13:39:47 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-05-14 21:22:26 +0200 |
commit | abaa88eaf6b495949199afd5886a519f89c39f36 (patch) | |
tree | eddcfc03740c765d59344ff0fdf81b79455dfd81 /src/gs-fade.c | |
parent | ce87b58ea6349d0a2b48ae1f7f01d5783027f7f5 (diff) | |
download | mate-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.c | 4 |
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; } |