Summary: | X Test extensions mix strings | ||
---|---|---|---|
Product: | xorg | Reporter: | Thorsten Staerk <dev> |
Component: | Lib/other | Assignee: | Stuart Anderson <anderson> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | high | ||
Version: | unspecified | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Thorsten Staerk
2005-03-12 08:04:40 UTC
product shift, xorg -> xtest. does flushing xlib's buffer -- XFlush(dpy, FALSE); -- after each character, help? if not, does using XSync instead of XFlush help? Time has passed, my compiler has changed to GCC 4. Here's my adapted test program: /* This program demonstrates a bug in the X test extension Compile and link this program like this: gcc -I/usr/X11R6/include -L/usr/X11R6/lib -o simkey simkey.c -lX11 -lXtst */ #include <X11/extensions/XTest.h> #include <X11/keysym.h> #include <stdio.h> int main(int argc, char *argv[]) { Display* disp = XOpenDisplay(NULL); { char *t="test"; char *s; int i; for (i=0;i<=3;i++) { s=&t[i]; XTestFakeKeyEvent( disp, XKeysymToKeycode (disp, *s), True, CurrentTime); XTestFakeKeyEvent( disp, XKeysymToKeycode (disp, *s), False, CurrentTime); } } XCloseDisplay(disp); } XFlush(disp) brings the solution. err... thanks, you really made my day !!! |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.