sowm

An itsy bitsy floating window manager (220~ sloc!).
git clone git://mfeller.io/sowm.git
Log | Files | Refs | README | LICENSE

commit c4d0b2ee8c9309fa8625a1e61b27655e55449e55
parent ce819bd126c7efa354e2ac897259f48b37350317
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Thu, 17 Oct 2019 14:24:33 +0300

sowm: clean up

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

diff --git a/sowm.c b/sowm.c @@ -532,7 +532,7 @@ void run(const Arg arg) { int main(void) { XEvent ev; - if (!(d = XOpenDisplay(0x0))) return 0; + if (!(d = XOpenDisplay(0))) return 0; signal(SIGCHLD, SIG_IGN); XSetErrorHandler(xerror); @@ -554,6 +554,6 @@ int main(void) { ButtonPressMask|ButtonReleaseMask|PointerMotionMask, GrabModeAsync, GrabModeAsync, None, None); - while(1 && !XNextEvent(d, &ev)) + while (1 && !XNextEvent(d, &ev)) if (events[ev.type]) events[ev.type](&ev); }