From 8ba5f9fdf4f925d91ed9b1968c2bb23ed8aaddca Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Sat, 20 Jul 2019 17:30:16 +0200 Subject: [PATCH 4/4] displays: Sync display when applying config Currently, the display plugin would flush the display when applying the configuration. Use a sync instead to make sure the request is actually sent and processed by the Xserver. Signed-off-by: Olivier Fourdan --- xfsettingsd/displays.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xfsettingsd/displays.c b/xfsettingsd/displays.c index 4f138fe3..f82d01af 100644 --- a/xfsettingsd/displays.c +++ b/xfsettingsd/displays.c @@ -1428,8 +1428,8 @@ xfce_displays_helper_apply_all (XfceDisplaysHelper *helper) #endif /* release the grab, changes are done */ + gdk_display_sync (helper->display); gdk_x11_display_ungrab (helper->display); - gdk_display_flush (helper->display); if (gdk_x11_display_error_trap_pop (helper->display) != 0) { g_critical ("Failed to apply display settings"); -- 2.21.0