added a TODO for performance improvements in key.c
This commit is contained in:
parent
d3eba6a99b
commit
ec4967e2cc
1 changed files with 2 additions and 0 deletions
2
key.c
2
key.c
|
@ -106,6 +106,8 @@ keypress(XKeyEvent *e)
|
||||||
int rightcode = XKeysymToKeycode(dpy, NEXTVIRT_KEY);
|
int rightcode = XKeysymToKeycode(dpy, NEXTVIRT_KEY);
|
||||||
int leftcode = XKeysymToKeycode(dpy, PREVVIRT_KEY);
|
int leftcode = XKeysymToKeycode(dpy, PREVVIRT_KEY);
|
||||||
|
|
||||||
|
/* TODO: use current->screen->width/height, and use switch/case for key handling */
|
||||||
|
|
||||||
XWindowAttributes ra;
|
XWindowAttributes ra;
|
||||||
XGetWindowAttributes(dpy, DefaultRootWindow(dpy), &ra);
|
XGetWindowAttributes(dpy, DefaultRootWindow(dpy), &ra);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue