added a TODO for performance improvements in key.c

This commit is contained in:
Iris Lightshard 2019-12-02 17:31:16 -05:00
parent d3eba6a99b
commit ec4967e2cc
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

2
key.c
View file

@ -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);