From ec4967e2cce2ec5ffcd6ae952b24d877abade11a Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Mon, 2 Dec 2019 17:31:16 -0500 Subject: [PATCH] added a TODO for performance improvements in key.c --- key.c | 2 ++ 1 file changed, 2 insertions(+) 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);