sowm: clean up

This commit is contained in:
Dylan Araps 2019-10-17 14:24:33 +03:00
parent ce819bd126
commit c4d0b2ee8c
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 2 deletions

4
sowm.c
View File

@ -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);
}