mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 09:30:24 -07:00
sowm: clean up
This commit is contained in:
parent
ce819bd126
commit
c4d0b2ee8c
4
sowm.c
4
sowm.c
@ -532,7 +532,7 @@ void run(const Arg arg) {
|
|||||||
int main(void) {
|
int main(void) {
|
||||||
XEvent ev;
|
XEvent ev;
|
||||||
|
|
||||||
if (!(d = XOpenDisplay(0x0))) return 0;
|
if (!(d = XOpenDisplay(0))) return 0;
|
||||||
|
|
||||||
signal(SIGCHLD, SIG_IGN);
|
signal(SIGCHLD, SIG_IGN);
|
||||||
XSetErrorHandler(xerror);
|
XSetErrorHandler(xerror);
|
||||||
@ -554,6 +554,6 @@ int main(void) {
|
|||||||
ButtonPressMask|ButtonReleaseMask|PointerMotionMask,
|
ButtonPressMask|ButtonReleaseMask|PointerMotionMask,
|
||||||
GrabModeAsync, GrabModeAsync, None, None);
|
GrabModeAsync, GrabModeAsync, None, None);
|
||||||
|
|
||||||
while(1 && !XNextEvent(d, &ev))
|
while (1 && !XNextEvent(d, &ev))
|
||||||
if (events[ev.type]) events[ev.type](&ev);
|
if (events[ev.type]) events[ev.type](&ev);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user