diff --git a/key.c b/key.c index e4f5ba5..3fb2944 100755 --- a/key.c +++ b/key.c @@ -106,6 +106,8 @@ keypress(XKeyEvent *e) int rightcode = XKeysymToKeycode(dpy, NEXTVIRT_KEY); int leftcode = XKeysymToKeycode(dpy, PREVVIRT_KEY); +/* TODO: use current->screen->width/height, and use switch/case for key handling */ + XWindowAttributes ra; XGetWindowAttributes(dpy, DefaultRootWindow(dpy), &ra);