extended cleanup
This commit is contained in:
parent
ce04a66528
commit
24d91e3b8a
2 changed files with 12 additions and 2 deletions
7
main.c
7
main.c
|
@ -27,7 +27,14 @@ cleanup()
|
|||
resize(sel, True, TopLeft);
|
||||
unmanage(sel);
|
||||
}
|
||||
if(dc.font.set)
|
||||
XFreeFontSet(dpy, dc.font.set);
|
||||
else
|
||||
XFreeFont(dpy, dc.font.xfont);
|
||||
XUngrabKey(dpy, AnyKey, AnyModifier, root);
|
||||
XDestroyWindow(dpy, barwin);
|
||||
XFreePixmap(dpy, dc.drawable);
|
||||
XFreeGC(dpy, dc.gc);
|
||||
XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
|
||||
XSync(dpy, False);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue