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 835694 Details for
Bug 844555
RFE: new IME switcher prevents to send the key events to kvm
[?]
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.
test case to reproduce the problem
a.c (text/plain), 1.76 KB, created by
fujiwara
on 2013-12-12 09:18:03 UTC
(
hide
)
Description:
test case to reproduce the problem
Filename:
MIME Type:
Creator:
fujiwara
Created:
2013-12-12 09:18:03 UTC
Size:
1.76 KB
patch
obsolete
>#include <extensions/XInput2.h> >#include <extensions/XI2.h> >#include <Xlib.h> >#include <X.h> >#include <stdio.h> >#include <stdlib.h> > >int >main (int argc, char *argv[]) >{ > KeySym keysym = 0x20; > KeyCode keycode; > XIGrabModifiers modifiers[] = { ControlMask }; > int mask_len = (XI_LASTEVENT + 7) / 8; > unsigned char *mask = calloc (mask_len, sizeof (unsigned char)); > XIEventMask evmask = { XIAllMasterDevices, mask_len, mask }; > Display *display = XOpenDisplay (NULL); > Window grab_window = XDefaultRootWindow (display); > > keycode = XKeysymToKeycode (display, keysym); > > printf ("keysym: %x keycode: %x modifiers: %d\n", > keysym, keycode, modifiers[0]); > > XISetMask (evmask.mask, XI_KeyPress); > > XIGrabKeycode (display, > XIAllMasterDevices, > keycode, > grab_window, > XIGrabModeAsync, > XIGrabModeAsync, > True, > &evmask, > 1, > modifiers); > > XISelectEvents (display, grab_window, &evmask, 1); > > while (1) { > XEvent event; > XGenericEventCookie *cookie = (XGenericEventCookie*)&event.xcookie; > XNextEvent (display, &event); > > if (XGetEventData (display, cookie) && > cookie->type == GenericEvent) { > printf ("event type: %d extension: %d\n", > cookie->evtype, cookie->extension); > switch (cookie->evtype) { > case XI_KeyPress: > printf ("XI_KeyPress\n"); > break; > case XI_RawKeyPress: > printf ("XI_RawKeyPress\n"); > break; > default:; > } > } > > XFreeEventData (display, cookie); > } > > 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 844555
: 835694 |
835710