sowm: Fix errors. Closes #51

This commit is contained in:
Dylan Araps 2020-01-24 06:40:37 +02:00
parent 2c3c353d74
commit 0e8cc9fe86
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
2 changed files with 2 additions and 1 deletions

2
sowm.c
View File

@ -259,7 +259,7 @@ int main(void) {
if (!(d = XOpenDisplay(0))) exit(1);
signal(SIGCHLD, SIG_IGN);
XSetErrorHandler(0);
XSetErrorHandler(xerror);
int s = DefaultScreen(d);
Window root = RootWindow(d, s);

1
sowm.h
View File

@ -52,3 +52,4 @@ void win_prev(const Arg arg);
void win_next(const Arg arg);
void win_to_ws(const Arg arg);
void ws_go(const Arg arg);
int xerror() { return 0; }