X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/e0cfe076485e7df266b53eaffaa093d9c94a61a7..aa53e39ec0eb39949c5c03d56da08204d14d9ff9:/dwm.h?ds=inline diff --git a/dwm.h b/dwm.h index d54fdc0..d20cf32 100644 --- a/dwm.h +++ b/dwm.h @@ -48,6 +48,7 @@ struct Client { int rx, ry, rw, rh; /* revert geometry */ int basew, baseh, incw, inch, maxw, maxh, minw, minh; int minax, maxax, minay, maxay; + int unmapped; long flags; unsigned int border, oldborder; Bool isbanned, isfixed, ismax, isfloating; @@ -75,7 +76,7 @@ typedef struct { typedef struct { const char *symbol; - void (*arrange)(void); + void (*arrange)(const char *); } Layout; extern const char *tags[]; /* all tags */ @@ -119,10 +120,8 @@ unsigned int textw(const char *text); /* return the width of text in px*/ void grabkeys(void); /* grab all keys defined in config.h */ /* layout.c */ -void floating(void); /* arranges all windows floating */ +void floating(const char *arg); /* arranges all windows floating */ void focusclient(const char *arg); /* focuses next(1)/previous(-1) visible client */ -void incmasterw(const char *arg); /* increments the master width with arg's index value */ -void incnmaster(const char *arg); /* increments nmaster with arg's index value */ void initlayouts(void); /* initialize layout array */ Client *nexttiled(Client *c); /* returns tiled successor of c */ void restack(void); /* restores z layers of all clients */ @@ -144,7 +143,6 @@ void tag(const char *arg); /* tags sel with arg's index */ void toggletag(const char *arg); /* toggles sel tags with arg's index */ void toggleview(const char *arg); /* toggles the tag with arg's index (in)visible */ void view(const char *arg); /* views the tag with arg's index */ -void shiftview(const char *arg); /* views next(1)/previous(-1) tag */ /* util.c */ void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */