mfwm

A tiling fork of dylanaraps sowm.
git clone git://depsterr.com/git/mfwm
Log | Files | Refs | README | LICENSE

commit de4a08ace09a948d3f92bc999a835934b4593896
parent 669ca21407136d44139faec7d4e621470ee661c6
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Thu, 17 Oct 2019 08:39:40 +0300

sowm: avoid branch and variable.

Diffstat:
Msowm.c | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/sowm.c b/sowm.c @@ -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); } /*