X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwm.c;h=564714f33fe53862a61e954e312d931ca549f0e3;hb=f7a45ff28bcf1d88f9268e3c1f1000df28f0cd08;hp=a1221800916d1491ea37cb06c1822c78234c128b;hpb=2e958372200065bff8f19ca88d39e627df4a2f67;p=dwm.git diff --git a/dwm.c b/dwm.c index a122180..564714f 100644 --- a/dwm.c +++ b/dwm.c @@ -1,3 +1,11 @@ +/** + * TODO + * - treat monocle as floating layout, actually otherwise certain monocled windows don't get raised + * - use WX, WY, WW, WH for window snapping/resizing/mouse + * - MOX, MOY, MOW, MOH should only be used in the case of monocle layout and of n==1 in tiled + * - simplify tile() + * - allow for vstack + */ /* See LICENSE file for copyright and license details. * * dynamic window manager is designed like any other X client as well. It is @@ -183,15 +191,12 @@ int xerror(Display *dpy, XErrorEvent *ee); int xerrordummy(Display *dpy, XErrorEvent *ee); int xerrorstart(Display *dpy, XErrorEvent *ee); void zoom(const char *arg); -void selectview(const char *arg); /* variables */ char stext[256], buf[256]; -double mwfact; int screen, sx, sy, sw, sh; int (*xerrorxlib)(Display *, XErrorEvent *); -unsigned int bh, bpos; -unsigned int blw = 0; +unsigned int bh, blw = 0; unsigned int numlockmask = 0; void (*handler[LASTEvent]) (XEvent *) = { [ButtonPress] = buttonpress, @@ -219,7 +224,7 @@ Client *stack = NULL; Cursor cursor[CurLast]; Display *dpy; DC dc = {0}; -Layout *lt; +Layout *lt = NULL; Window root, barwin; /* configuration, allows nested code to access above variables */ @@ -362,7 +367,6 @@ checkotherwm(void) { void cleanup(void) { - close(STDIN_FILENO); while(stack) { unban(stack); @@ -372,7 +376,6 @@ cleanup(void) { XFreeFontSet(dpy, dc.font.set); else XFreeFont(dpy, dc.font.xfont); - XUngrabKey(dpy, AnyKey, AnyModifier, root); XFreePixmap(dpy, dc.drawable); XFreeGC(dpy, dc.gc);