From ffff875c2c587e3ad64d57afc1c432de77497c10 Mon Sep 17 00:00:00 2001 From: Sascha Hlusiak Date: Tue, 30 Sep 2008 17:54:08 +0200 Subject: [PATCH] Call XSync instead XFlush to be able to handle errors When setting properties, the program terminated successfully before any BadMatch or BadValue could be processed. Calling XSync informs the user about errors. --- src/xinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xinput.c b/src/xinput.c index e174388..441ee12 100644 --- a/src/xinput.c +++ b/src/xinput.c @@ -236,7 +236,7 @@ main(int argc, char * argv[]) if (strcmp(driver->func_name, func) == 0) { int r = (*driver->func)(display, argc-2, argv+2, driver->func_name, driver->arg_desc); - XFlush(display); + XSync(display, False); return r; } driver++; -- 2.56.0