Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 216669 Details for
Bug 301182
evrouter-0.4-r1.ebuild (Patch for Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
the patch for which evrouter-0.4-r1.ebuild was made.
evrouter-focus.patch (text/plain), 1.71 KB, created by
hash
on 2010-01-16 12:29:23 UTC
(
hide
)
Description:
the patch for which evrouter-0.4-r1.ebuild was made.
Filename:
MIME Type:
Creator:
hash
Created:
2010-01-16 12:29:23 UTC
Size:
1.71 KB
patch
obsolete
>Index: src/evrouter.c >=================================================================== >--- src/evrouter.c (revision 15) >+++ src/evrouter.c (working copy) >@@ -106,16 +106,26 @@ > static char * > get_focus () > { >- Window focus; >+ Window focus, root, parent; >+ Window *children; > XClassHint xch = {NULL, NULL}; > int i; > char * wname = NULL; > static char * oldwname = "(null)"; >+ unsigned int num_children; > > XGetInputFocus (d, &focus, &i); > if (focus != None) { > XGetClassHint (d, focus, &xch); > XFetchName (d, focus, &wname); >+ XQueryTree(d, focus, &root, &parent, &children, &num_children); >+ if ((!xch.res_class) && (parent) && (focus != root)) { >+ XFree(xch.res_class); >+ XFree(xch.res_name); >+ XFree(wname); >+ XGetClassHint(d, parent, &xch); >+ XFetchName (d, parent, &wname); >+ } > } > > if (train_mode) { >@@ -238,11 +248,13 @@ > static void > handle_event (evdev_t * dev, int devindex, struct input_event * ev) > { >- Window focus; >+ Window focus, root, parent; >+ Window *children; > XClassHint xch = {NULL, NULL}; > int i, k; > char * wname = NULL; > unsigned int mods; >+ unsigned int num_children; > XErrorHandler old_handler; > > if ((ev->type != EV_KEY) && >@@ -262,6 +274,14 @@ > if (focus != None) { > XGetClassHint (d, focus, &xch); > XFetchName (d, focus, &wname); >+ XQueryTree(d, focus, &root, &parent, &children, &num_children); >+ if ((!xch.res_class) && (parent) && (focus != root)) { >+ XFree(xch.res_class); >+ XFree(xch.res_name); >+ XFree(wname); >+ XGetClassHint(d, parent, &xch); >+ XFetchName (d, parent, &wname); >+ } > } > XSetErrorHandler(old_handler); >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 301182
:
216668
| 216669