|
From: <mla...@us...> - 2007-12-27 06:03:55
|
Revision: 362
http://g15daemon.svn.sourceforge.net/g15daemon/?rev=362&view=rev
Author: mlampard
Date: 2007-12-26 22:04:00 -0800 (Wed, 26 Dec 2007)
Log Message:
-----------
Use XSync when sending key events
Modified Paths:
--------------
trunk/g15daemon-clients/g15macro/ChangeLog
trunk/g15daemon-clients/g15macro/g15macro.c
Modified: trunk/g15daemon-clients/g15macro/ChangeLog
===================================================================
--- trunk/g15daemon-clients/g15macro/ChangeLog 2007-12-27 04:24:05 UTC (rev 361)
+++ trunk/g15daemon-clients/g15macro/ChangeLog 2007-12-27 06:04:00 UTC (rev 362)
@@ -17,3 +17,4 @@
- Add --debug (-g) to add some debugging
- Switch to a textual configuration file. Auto-converts to new format from binary
config if it exists. Only Semi-readable, but better than a binary dump.
+- Ensure each keypress is received by X11 in sequence.
Modified: trunk/g15daemon-clients/g15macro/g15macro.c
===================================================================
--- trunk/g15daemon-clients/g15macro/g15macro.c 2007-12-27 04:24:05 UTC (rev 361)
+++ trunk/g15daemon-clients/g15macro/g15macro.c 2007-12-27 06:04:00 UTC (rev 362)
@@ -231,6 +231,7 @@
#ifdef HAVE_X11_EXTENSIONS_XTEST_H
pthread_mutex_lock(&x11mutex);
XTestFakeKeyEvent(dpy, keycode,keydown, CurrentTime);
+ XSync(dpy,False);
pthread_mutex_unlock(&x11mutex);
usleep(1500);
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|