X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=main.c;h=9d583b2823822ad8620a545a926220585be01ef1;hb=b597fa46370af6594c0980f6c2ddefbe943ee933;hp=985635432dda857dca745bf9d23a3d3c82d0c208;hpb=26157e6973f240a9b5ee407b9d2d5eca9358844f;p=dwm.git diff --git a/main.c b/main.c index 9856354..9d583b2 100644 --- a/main.c +++ b/main.c @@ -27,6 +27,7 @@ Bool issel = True; Bool maximized = False; Client *clients = NULL; Client *sel = NULL; +Client *stack = NULL; Cursor cursor[CurLast]; Display *dpy; DC dc = {0}; @@ -55,6 +56,7 @@ cleanup() XDestroyWindow(dpy, barwin); XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); XSync(dpy, False); + free(seltag); } static void @@ -212,7 +214,7 @@ quit(Arg *arg) /* * There's no way to check accesses to destroyed windows, thus those cases are * ignored (especially on UnmapNotify's). Other types of errors call Xlibs - * default error handler, which calls exit(). + * default error handler, which may call exit. */ int xerror(Display *dpy, XErrorEvent *ee) @@ -227,7 +229,7 @@ xerror(Display *dpy, XErrorEvent *ee) return 0; fprintf(stderr, "dwm: fatal error: request code=%d, error code=%d\n", ee->request_code, ee->error_code); - return xerrorxlib(dpy, ee); /* may call exit() */ + return xerrorxlib(dpy, ee); /* may call exit */ } int