From: Sascha Hlusiak Date: Tue, 30 Sep 2008 15:54:08 +0000 (+0200) Subject: Call XSync instead XFlush to be able to handle errors X-Git-Url: https://diplodocus.org/git/xorg-xinput/commitdiff_plain/ffff875c2c587e3ad64d57afc1c432de77497c10?ds=sidebyside;hp=--cc 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. --- ffff875c2c587e3ad64d57afc1c432de77497c10 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++;