summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-10-31 12:07:32 +0100
committerarg@mig29 <unknown>2006-10-31 12:07:32 +0100
commit4b5b3d90af58f860569178e554604717ef51152d (patch)
treec01366e23aeaef73ab29818ee40496e0454ab4bd
parentapplied Gottox patch to simplify the resizing of col, instead of resizing the... (diff)
downloaddwm-4b5b3d90af58f860569178e554604717ef51152d.tar.gz
dwm-4b5b3d90af58f860569178e554604717ef51152d.zip
renamed resizecol into resizemaster
Diffstat (limited to '')
-rw-r--r--config.arg.h4
-rw-r--r--config.default.h4
-rw-r--r--dwm.h2
-rw-r--r--view.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/config.arg.h b/config.arg.h
index 1cac475..5958e21 100644
--- a/config.arg.h
+++ b/config.arg.h
@@ -33,8 +33,8 @@ static Key key[] = { \
33 { MODKEY, XK_j, focusnext, { 0 } }, \ 33 { MODKEY, XK_j, focusnext, { 0 } }, \
34 { MODKEY, XK_k, focusprev, { 0 } }, \ 34 { MODKEY, XK_k, focusprev, { 0 } }, \
35 { MODKEY, XK_Return, zoom, { 0 } }, \ 35 { MODKEY, XK_Return, zoom, { 0 } }, \
36 { MODKEY, XK_g, resizecol, { .i = 15 } }, \ 36 { MODKEY, XK_g, resizemaster, { .i = 15 } }, \
37 { MODKEY, XK_s, resizecol, { .i = -15 } }, \ 37 { MODKEY, XK_s, resizemaster, { .i = -15 } }, \
38 { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \ 38 { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \
39 { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ 39 { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \
40 { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \ 40 { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \
diff --git a/config.default.h b/config.default.h
index 0a595a2..85cc135 100644
--- a/config.default.h
+++ b/config.default.h
@@ -28,8 +28,8 @@ static Key key[] = { \
28 { MODKEY, XK_Tab, focusnext, { 0 } }, \ 28 { MODKEY, XK_Tab, focusnext, { 0 } }, \
29 { MODKEY|ShiftMask, XK_Tab, focusprev, { 0 } }, \ 29 { MODKEY|ShiftMask, XK_Tab, focusprev, { 0 } }, \
30 { MODKEY, XK_Return, zoom, { 0 } }, \ 30 { MODKEY, XK_Return, zoom, { 0 } }, \
31 { MODKEY, XK_g, resizecol, { .i = 15 } }, \ 31 { MODKEY, XK_g, resizemaster, { .i = 15 } }, \
32 { MODKEY, XK_s, resizecol, { .i = -15 } }, \ 32 { MODKEY, XK_s, resizemaster, { .i = -15 } }, \
33 { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \ 33 { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \
34 { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ 34 { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \
35 { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \ 35 { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \
diff --git a/dwm.h b/dwm.h
index 850e60b..f9c4094 100644
--- a/dwm.h
+++ b/dwm.h
@@ -161,7 +161,7 @@ extern void dotile(void); /* arranges all windows tiled */
161extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */ 161extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */
162extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ 162extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */
163extern Bool isvisible(Client *c); /* returns True if client is visible */ 163extern Bool isvisible(Client *c); /* returns True if client is visible */
164extern void resizecol(Arg *arg); /* resizes the master percent with arg's index value */ 164extern void resizemaster(Arg *arg); /* resizes the master percent with arg's index value */
165extern void restack(void); /* restores z layers of all clients */ 165extern void restack(void); /* restores z layers of all clients */
166extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ 166extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */
167extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ 167extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */
diff --git a/view.c b/view.c
index 4f42abe..abd8ca6 100644
--- a/view.c
+++ b/view.c
@@ -195,7 +195,7 @@ isvisible(Client *c) {
195} 195}
196 196
197void 197void
198resizecol(Arg *arg) { 198resizemaster(Arg *arg) {
199 if(master + arg->i > 950 || master + arg->i < 50) 199 if(master + arg->i > 950 || master + arg->i < 50)
200 return; 200 return;
201 master += arg->i; 201 master += arg->i;