aboutsummaryrefslogtreecommitdiffstats
path: root/dwm.h
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-08-13 19:13:54 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-08-13 19:13:54 +0200
commit77044e876511f51c34bde379d89e2de754707ee6 (patch)
tree6626665e0d57068c2d6ddbb3669534f2afb4e159 /dwm.h
parent2feb3afe784cbd9d900bd70aad91431a4b25f2ab (diff)
downloaddwm-77044e876511f51c34bde379d89e2de754707ee6.tar.gz
made Layout a static struct in layout.c, added some convenience getters in layout.c, now lt->arrange accesses are not possible anymore, arrange() is the super-arrange function which sets up all layouts
Diffstat (limited to 'dwm.h')
-rw-r--r--dwm.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/dwm.h b/dwm.h
index 760d67d..8f5ffdb 100644
--- a/dwm.h
+++ b/dwm.h
@@ -74,11 +74,6 @@ typedef struct {
} 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 */
@@ -92,7 +87,6 @@ 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 */
@@ -120,8 +114,11 @@ 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, fallback layout */
+void arrange(void); /* arranges all windows depending on the layout in use */
void focusclient(const char *arg); /* focuses next(1)/previous(-1) visible client */
+const char *getsymbol(void); /* returns True 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 */