summaryrefslogtreecommitdiffstats
path: root/dwm.h
diff options
context:
space:
mode:
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 {
74 } font; 74 } font;
75} DC; /* draw context */ 75} DC; /* draw context */
76 76
77typedef struct {
78 const char *symbol;
79 void (*arrange)(void);
80} Layout;
81
82extern const char *tags[]; /* all tags */ 77extern const char *tags[]; /* all tags */
83extern char stext[256]; /* status text */ 78extern char stext[256]; /* status text */
84extern int screen, sx, sy, sw, sh; /* screen geometry */ 79extern int screen, sx, sy, sw, sh; /* screen geometry */
@@ -92,7 +87,6 @@ extern Client *clients, *sel, *stack; /* global client list and stack */
92extern Cursor cursor[CurLast]; 87extern Cursor cursor[CurLast];
93extern DC dc; /* global draw context */ 88extern DC dc; /* global draw context */
94extern Display *dpy; 89extern Display *dpy;
95extern Layout *lt;
96extern Window root, barwin; 90extern Window root, barwin;
97 91
98/* client.c */ 92/* client.c */
@@ -120,8 +114,11 @@ unsigned int textw(const char *text); /* return the width of text in px*/
120void grabkeys(void); /* grab all keys defined in config.h */ 114void grabkeys(void); /* grab all keys defined in config.h */
121 115
122/* layout.c */ 116/* layout.c */
123void floating(void); /* arranges all windows floating, fallback layout */ 117void arrange(void); /* arranges all windows depending on the layout in use */
124void focusclient(const char *arg); /* focuses next(1)/previous(-1) visible client */ 118void focusclient(const char *arg); /* focuses next(1)/previous(-1) visible client */
119const char *getsymbol(void); /* returns True symbol of enabled layout */
120Bool isfloating(void); /* returns True if floating layout is enabled */
121Bool isarrange(void (*func)()); /* returns True if func is the layout function in use */
125void initlayouts(void); /* initialize layout array */ 122void initlayouts(void); /* initialize layout array */
126Client *nexttiled(Client *c); /* returns tiled successor of c */ 123Client *nexttiled(Client *c); /* returns tiled successor of c */
127void restack(void); /* restores z layers of all clients */ 124void restack(void); /* restores z layers of all clients */