Re: Problems with XF86MiscSetMouseSettings
Michael Toomim <[email protected]> Mon, 06 Jan 2003 22:30:34 -0800
| Newsgroups | gmane.comp.xfree86.expert |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------080007080706080002080005
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Michael Toomim wrote:
> 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
I'm sorry, I posted the wrong attachment. Here's the real testcase:
#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);
XF86MiscSetMouseSettings(dpy, &mouse_settings);
// Any X call here appears to cause an error
XF86MiscGetMouseSettings(dpy, &mouse_settings);
}
I'm also attaching it to this message.
--------------080007080706080002080005
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);
XF86MiscSetMouseSettings(dpy, &mouse_settings);
// Any X call here appears to cause an error
XF86MiscGetMouseSettings(dpy, &mouse_settings);
}
--------------080007080706080002080005
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
--------------080007080706080002080005--