mirror of
https://github.com/dylanaraps/sowm.git
synced 2026-10-01 05:25:23 +07:00
sowm: avoid branch and variable.
This commit is contained in:
@@ -199,12 +199,9 @@ void notify_motion(XEvent *e) {
|
||||
managers happens here.
|
||||
*/
|
||||
void key_grab() {
|
||||
KeyCode code;
|
||||
|
||||
for (unsigned int i=0; i < sizeof(keys)/sizeof(*keys); ++i)
|
||||
if ((code = XKeysymToKeycode(d, keys[i].keysym)))
|
||||
XGrabKey(d, code, keys[i].mod, root,
|
||||
True, GrabModeAsync, GrabModeAsync);
|
||||
XGrabKey(d, XKeysymToKeycode(d, keys[i].keysym), keys[i].mod,
|
||||
root, True, GrabModeAsync, GrabModeAsync);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user