From 6ef0247eefb342d0d345a97f201aea217203b499 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 12 Aug 2018 16:15:51 +0200 Subject: mate-rr-config: replace deprecated gdk_flush --- libmate-desktop/mate-rr-config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.1