summaryrefslogtreecommitdiff
path: root/libmate-desktop
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-08-12 16:15:51 +0200
committerraveit65 <[email protected]>2018-08-15 17:59:32 +0200
commit6ef0247eefb342d0d345a97f201aea217203b499 (patch)
tree085aba4fc3b8ba12300063896755f61f56e48655 /libmate-desktop
parent953da779b2dd797aa53ae11e0c6da2d6822c7e56 (diff)
downloadmate-desktop-6ef0247eefb342d0d345a97f201aea217203b499.tar.bz2
mate-desktop-6ef0247eefb342d0d345a97f201aea217203b499.tar.xz
mate-rr-config: replace deprecated gdk_flush
Diffstat (limited to 'libmate-desktop')
-rw-r--r--libmate-desktop/mate-rr-config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmate-desktop/mate-rr-config.c b/libmate-desktop/mate-rr-config.c
index dfff1b6..0f96a9b 100644
--- a/libmate-desktop/mate-rr-config.c
+++ b/libmate-desktop/mate-rr-config.c
@@ -1290,6 +1290,7 @@ mate_rr_config_apply_with_time (MateRRConfig *config,
MateRROutputInfo **outputs;
gboolean result = FALSE;
int i;
+ GdkDisplay *display;
g_return_val_if_fail (MATE_IS_RR_CONFIG (config), FALSE);
g_return_val_if_fail (MATE_IS_RR_SCREEN (screen), FALSE);
@@ -1309,7 +1310,8 @@ mate_rr_config_apply_with_time (MateRRConfig *config,
crtc_assignment_free (assignment);
- gdk_flush ();
+ display = gdk_display_get_default ();
+ gdk_display_flush (display);
}
return result;