From e521ecfd2ade0ac7730074a6590262d102c59245 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Sat, 27 Sep 2008 15:25:32 +0200 Subject: [PATCH] [wmfs] Fix some things (prepa for rc1) --- wmfs.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wmfs.c b/wmfs.c index d994bb2..a849b1e 100644 --- a/wmfs.c +++ b/wmfs.c @@ -1415,10 +1415,13 @@ main(int argc,char **argv) XFreeCursor(dpy, cursor[CurMove]); XFreeCursor(dpy, cursor[CurResize]); XDestroyWindow(dpy, bar); + if(conf.nbutton) + for(i = 0; i < conf.nbutton; ++i) + XDestroyWindow(dpy, conf.barbutton[i].win); XSync(dpy, False); XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); - XCloseDisplay(dpy); - return 0; + + exit(EXIT_SUCCESS); }