Separate out the menu window from the client resize/move geom window; in each
case, create and destroy on-demand. Isolate more menu specific code.
This commit is contained in:
2
calmwm.c
2
calmwm.c
@@ -165,8 +165,6 @@ x_teardown(void)
|
||||
DefaultColormap(X_Dpy, sc->which),
|
||||
&sc->xftcolor[i]);
|
||||
XftFontClose(X_Dpy, sc->xftfont);
|
||||
XftDrawDestroy(sc->menu.xftdraw);
|
||||
XDestroyWindow(X_Dpy, sc->menu.win);
|
||||
XUngrabKey(X_Dpy, AnyKey, AnyModifier, sc->rootwin);
|
||||
}
|
||||
XUngrabPointer(X_Dpy, CurrentTime);
|
||||
|
||||
Reference in New Issue
Block a user