} font;
} DC; /* draw context */
-typedef struct {
- const char *symbol;
- void (*arrange)(void);
-} Layout;
-
extern const char *tags[]; /* all tags */
extern char stext[256]; /* status text */
extern int screen, sx, sy, sw, sh; /* screen geometry */
extern unsigned int bh, blw, bpos; /* bar height, bar layout label width, bar position */
extern unsigned int ntags, numlockmask; /* number of tags, numlock mask */
extern void (*handler[LASTEvent])(XEvent *); /* event handler */
-extern Atom wmatom[WMLast], netatom[NetLast];
+extern Atom dwmtags, wmatom[WMLast], netatom[NetLast];
extern Bool selscreen, *seltag; /* seltag is array of Bool */
extern Client *clients, *sel, *stack; /* global client list and stack */
extern Cursor cursor[CurLast];
extern DC dc; /* global draw context */
extern Display *dpy;
-extern Layout *lt;
extern Window root, barwin;
/* client.c */
void grabkeys(void); /* grab all keys defined in config.h */
/* layout.c */
-void floating(void); /* arranges all windows floating */
+void arrange(void); /* arranges all windows depending on the layout in use */
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 */
+const char *getsymbol(void); /* returns symbol of enabled layout */
+Bool isfloating(void); /* returns True if floating layout is enabled */
+Bool isarrange(void (*func)()); /* returns True if func is the layout function in use */
void initlayouts(void); /* initialize layout array */
Client *nexttiled(Client *c); /* returns tiled successor of c */
void restack(void); /* restores z layers of all clients */
void setlayout(const char *arg); /* sets layout, NULL means next layout */
void togglebar(const char *arg); /* shows/hides the bar */
void togglemax(const char *arg); /* toggles maximization of floating client */
-void zoom(const char *arg); /* zooms the focused client to master area, arg is ignored */
/* main.c */
void updatebarpos(void); /* updates the bar position */