diff options
| author | moetunes <moetunes111@gmail.com> | 2011-11-24 12:46:24 +1000 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2011-11-24 05:30:13 +0200 |
| commit | d16e2e95e1b48f08e211937f731abd21eec69c14 (patch) | |
| tree | 789e9a842aa2a977e4118b444cbcc075c017c02c /src/dminiwm.c | |
| parent | 28602afb74047423df5d454c2a0cce12cb65c12c (diff) | |
Sync with upstream code
Unified master and stack resizing functions as per
c00kiemon5ter/dminiwm@56664339017b86c9dbc9794e6686cc25bf49e795
Conflicts:
src/config.h.def
src/dminiwm.c
Diffstat (limited to 'src/dminiwm.c')
| -rw-r--r-- | src/dminiwm.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/dminiwm.c b/src/dminiwm.c index d26dfff..2912633 100644 --- a/src/dminiwm.c +++ b/src/dminiwm.c @@ -1,4 +1,4 @@ -/* dminiwm.c [ 0.1.6 ] +/* dminiwm.c [ 0.1.7 ] * * I started this from catwm 31/12/10 * Bad window error checking and numlock checking used from @@ -106,8 +106,6 @@ static void enternotify(XEvent *e); static void logger(const char* e); static unsigned long getcolor(const char* color); static void grabkeys(); -static void resize_window(const Arg arg); -static void resize(const Arg arg); static void keypress(XEvent *e); static void kill_client(); static void maprequest(XEvent *e); @@ -119,6 +117,8 @@ static void prev_desktop(); static void prev_win(); static void quit(const Arg arg); static void remove_window(Window w); +static void resize_master(const Arg arg); +static void resize_stack(const Arg arg); static void save_desktop(int i); static void select_desktop(int i); static void send_kill_signal(Window w); @@ -348,11 +348,6 @@ void swap_master() { } } -void resize(const Arg arg) { - master_size += arg.i; - tile(); -} - /* **************************** Desktop Management ************************************* */ void change_desktop(const Arg arg) { client *c; @@ -618,7 +613,12 @@ void switch_grid() { } } -void resize_window(const Arg arg) { +void resize_master(const Arg arg) { + master_size += arg.i; + tile(); +} + +void resize_stack(const Arg arg) { growth += arg.i; tile(); } |
