Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 606133 Details for
Bug 804907
libXi sets the event->display value to garbage
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
cookie-display-check.c
cookie-display-check.c (text/plain), 1.37 KB, created by
Peter Hutterer
on 2012-08-22 06:18:18 UTC
(
hide
)
Description:
cookie-display-check.c
Filename:
MIME Type:
Creator:
Peter Hutterer
Created:
2012-08-22 06:18:18 UTC
Size:
1.37 KB
patch
obsolete
>/* > gcc -Wall -o cookie-display-check `pkg-config --cflags --libs x11 xi` cookie-display-check.c > */ > >#include <assert.h> >#include <stdio.h> >#include <X11/Xlib.h> >#include <X11/extensions/XI2.h> >#include <X11/extensions/XInput2.h> > >int main(int argc, char** argv) >{ > Display *dpy; > int major = 2, > minor = 0; > XIEventMask mask; > unsigned char data[XIMaskLen(XI_LASTEVENT)]; > > dpy = XOpenDisplay(NULL); > assert(dpy); > > assert(XIQueryVersion(dpy, &major, &minor) == Success); > assert(major * 1000 + minor >= 2000); > > > mask.deviceid = XIAllDevices; > mask.mask = data; > mask.mask_len = sizeof(data); > memset(data, 0, sizeof(data)); > XISetMask(mask.mask, XI_RawMotion); > XISetMask(mask.mask, XI_RawButtonPress); > XISetMask(mask.mask, XI_RawButtonRelease); > > XISelectEvents(dpy, DefaultRootWindow(dpy), &mask, 1); > XSync(dpy, False); > > printf("Waiting for event, move pointer now.\n"); > > while (1) { > XEvent ev; > XIDeviceEvent *dev; > > XNextEvent(dpy, &ev); > > if (ev.type != GenericEvent) > continue; > > assert(ev.xcookie.display == dpy); > assert(XGetEventData(dpy, &ev.xcookie)); > > dev = ev.xcookie.data; > /* https://bugzilla.redhat.com/show_bug.cgi?id=804907 */ > assert(dev->display == dpy); > > XFreeEventData(dpy, &ev.xcookie); > break; > } > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 804907
:
601619
| 606133