Problems with XF86MiscSetMouseSettings
Michael Toomim <[email protected]> Mon, 06 Jan 2003 21:04:43 -0800
| Newsgroups | gmane.comp.xfree86.expert |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------010608070304010105090009
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
I've been having issues getting XF86MiscSetMouseSettings() to work.
I've put together a really simple test case (attached) that results in
the following error:
X Error of failed request: 139
Major opcode of failed request: 136 (XFree86-Misc)
Minor opcode of failed request: 5 (XF86MiscSetMouseSettings)
Value in failed request: 0x3a
Serial number of failed request: 9
Current serial number in output stream: 10
Could somebody tell me what's wrong with my test case, or if this is a
bug in the xf86misc extension? I'd really appreciate it.
Thanks,
Michael
--------------010608070304010105090009
Content-Type: text/x-csrc;
name="testmouse.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="testmouse.c"
#include <X11/Xlib.h>
#include <X11/extensions/xf86misc.h>
int main (int argc, char *argv[]) {
Display* dpy = XOpenDisplay(":0.0");
XF86MiscMouseSettings mouse_settings;
XF86MiscGetMouseSettings(dpy, &mouse_settings);
XF86MiscGetMouseSettings(dpy, &mouse_settings);
XF86MiscGetMouseSettings(dpy, &mouse_settings);
// XF86MiscSetMouseSettings(dpy, &mouse_settings);
// Any X call here appears to cause an error
XF86MiscGetMouseSettings(dpy, &mouse_settings);
}
--------------010608070304010105090009
Content-Type: text/plain;
name="Makefile"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Makefile"
test: testmouse.c
gcc -o testmouse testmouse.c -L/usr/X11R6/lib -lXxf86misc -lXext -lX11
--------------010608070304010105090009--