mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-07-31 20:21:57 -07:00
sowm: clean up
This commit is contained in:
4
sowm.c
4
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user