aewl
changeset 515:d6d1d0033e3c
removed useless updatemaster
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Fri, 29 Sep 2006 17:25:49 +0200 |
parents | 3dd1631824a6 |
children | e5f8d6ac509c |
files | config.arg.h dwm.h main.c view.c |
diffstat | 4 files changed, 3 insertions(+), 9 deletions(-) [+] |
line diff
1.1 --- a/config.arg.h Fri Sep 29 17:20:05 2006 +0200 1.2 +++ b/config.arg.h Fri Sep 29 17:25:49 2006 +0200 1.3 @@ -8,7 +8,7 @@ 1.4 1.5 #define DEFMODE dotile /* dofloat */ 1.6 #define FLOATSYMBOL "><>" 1.7 -#define STACKPOS StackRight /* StackLeft */ 1.8 +#define STACKPOS StackRight /* StackLeft, StackBottom */ 1.9 #define TILESYMBOL "[]=" 1.10 1.11 #define FONT "-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*"
2.1 --- a/dwm.h Fri Sep 29 17:20:05 2006 +0200 2.2 +++ b/dwm.h Fri Sep 29 17:25:49 2006 +0200 2.3 @@ -174,7 +174,6 @@ 2.4 extern void togglestackpos(Arg *arg); /* toggles stack position */ 2.5 extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ 2.6 extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ 2.7 -extern void updatemaster(void); /* updates master dimension */ 2.8 extern void view(Arg *arg); /* views the tag with arg's index */ 2.9 extern void viewall(Arg *arg); /* views all tags, arg is ignored */ 2.10 extern void zoom(Arg *arg); /* zooms the focused client to master area, arg is ignored */
3.1 --- a/main.c Fri Sep 29 17:20:05 2006 +0200 3.2 +++ b/main.c Fri Sep 29 17:25:49 2006 +0200 3.3 @@ -133,7 +133,7 @@ 3.4 sx = sy = 0; 3.5 sw = DisplayWidth(dpy, screen); 3.6 sh = DisplayHeight(dpy, screen); 3.7 - updatemaster(); 3.8 + master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100; 3.9 3.10 bx = by = 0; 3.11 bw = sw;
4.1 --- a/view.c Fri Sep 29 17:20:05 2006 +0200 4.2 +++ b/view.c Fri Sep 29 17:25:49 2006 +0200 4.3 @@ -340,16 +340,11 @@ 4.4 stackpos = STACKPOS; 4.5 else 4.6 stackpos = StackBottom; 4.7 - updatemaster(); 4.8 + master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100; 4.9 arrange(NULL); 4.10 } 4.11 4.12 void 4.13 -updatemaster(void) { 4.14 - master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100; 4.15 -} 4.16 - 4.17 -void 4.18 view(Arg *arg) { 4.19 unsigned int i; 4.20