summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.arg.h2
-rw-r--r--dwm.h1
-rw-r--r--main.c2
-rw-r--r--view.c7
4 files changed, 3 insertions, 9 deletions
diff --git a/config.arg.h b/config.arg.h
index 1e6a670..6a36c22 100644
--- a/config.arg.h
+++ b/config.arg.h
@@ -8,7 +8,7 @@ const char *tags[] = { "dev", "work", "net", "fnord", NULL };
8 8
9#define DEFMODE dotile /* dofloat */ 9#define DEFMODE dotile /* dofloat */
10#define FLOATSYMBOL "><>" 10#define FLOATSYMBOL "><>"
11#define STACKPOS StackRight /* StackLeft */ 11#define STACKPOS StackRight /* StackLeft, StackBottom */
12#define TILESYMBOL "[]=" 12#define TILESYMBOL "[]="
13 13
14#define FONT "-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*" 14#define FONT "-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*"
diff --git a/dwm.h b/dwm.h
index ba50bf6..b33d073 100644
--- a/dwm.h
+++ b/dwm.h
@@ -174,7 +174,6 @@ extern void restack(void); /* restores z layers of all clients */
174extern void togglestackpos(Arg *arg); /* toggles stack position */ 174extern void togglestackpos(Arg *arg); /* toggles stack position */
175extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ 175extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */
176extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ 176extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */
177extern void updatemaster(void); /* updates master dimension */
178extern void view(Arg *arg); /* views the tag with arg's index */ 177extern void view(Arg *arg); /* views the tag with arg's index */
179extern void viewall(Arg *arg); /* views all tags, arg is ignored */ 178extern void viewall(Arg *arg); /* views all tags, arg is ignored */
180extern void zoom(Arg *arg); /* zooms the focused client to master area, arg is ignored */ 179extern void zoom(Arg *arg); /* zooms the focused client to master area, arg is ignored */
diff --git a/main.c b/main.c
index 488ebc1..a1fdde1 100644
--- a/main.c
+++ b/main.c
@@ -133,7 +133,7 @@ setup(void) {
133 sx = sy = 0; 133 sx = sy = 0;
134 sw = DisplayWidth(dpy, screen); 134 sw = DisplayWidth(dpy, screen);
135 sh = DisplayHeight(dpy, screen); 135 sh = DisplayHeight(dpy, screen);
136 updatemaster(); 136 master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100;
137 137
138 bx = by = 0; 138 bx = by = 0;
139 bw = sw; 139 bw = sw;
diff --git a/view.c b/view.c
index 72e32c7..7c56ac2 100644
--- a/view.c
+++ b/view.c
@@ -340,13 +340,8 @@ togglestackpos(Arg *arg) {
340 stackpos = STACKPOS; 340 stackpos = STACKPOS;
341 else 341 else
342 stackpos = StackBottom; 342 stackpos = StackBottom;
343 updatemaster();
344 arrange(NULL);
345}
346
347void
348updatemaster(void) {
349 master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100; 343 master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100;
344 arrange(NULL);
350} 345}
351 346
352void 347void