dwm-meillo

changeset 28:3dceb132082d

added max
author Anselm R. Garbe <garbeam@wmii.de>
date Wed, 12 Jul 2006 16:40:37 +0200
parents f96fb3fd8203
children 8ad86d0a6a53
files client.c kb.c wm.h
diffstat 3 files changed, 15 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/client.c	Wed Jul 12 16:00:51 2006 +0200
     1.2 +++ b/client.c	Wed Jul 12 16:40:37 2006 +0200
     1.3 @@ -12,6 +12,18 @@
     1.4  #include "wm.h"
     1.5  
     1.6  void
     1.7 +max(void *aux)
     1.8 +{
     1.9 +	if(!stack)
    1.10 +		return;
    1.11 +	stack->x = sx;
    1.12 +	stack->y = bh;
    1.13 +	stack->w = sw - 2;
    1.14 +	stack->h = sh - bh - 2;
    1.15 +	resize(stack);
    1.16 +}
    1.17 +
    1.18 +void
    1.19  arrange(void *aux)
    1.20  {
    1.21  	Client *c;
     2.1 --- a/kb.c	Wed Jul 12 16:00:51 2006 +0200
     2.2 +++ b/kb.c	Wed Jul 12 16:40:37 2006 +0200
     2.3 @@ -23,6 +23,7 @@
     2.4  	{ Mod1Mask, XK_k, sel, "prev" }, 
     2.5  	{ Mod1Mask, XK_j, sel, "next" }, 
     2.6  	{ Mod1Mask, XK_g, arrange, NULL }, 
     2.7 +	{ Mod1Mask, XK_m, max, NULL }, 
     2.8  	{ Mod1Mask | ShiftMask, XK_c, kill, NULL }, 
     2.9  	{ Mod1Mask | ShiftMask, XK_q, quit, NULL },
    2.10  };
     3.1 --- a/wm.h	Wed Jul 12 16:00:51 2006 +0200
     3.2 +++ b/wm.h	Wed Jul 12 16:40:37 2006 +0200
     3.3 @@ -72,13 +72,12 @@
     3.4  extern void lower(Client *c);
     3.5  extern void kill(void *aux);
     3.6  extern void sel(void *aux);
     3.7 +extern void max(void *aux);
     3.8 +extern void arrange();
     3.9  
    3.10  /* event.c */
    3.11  extern void discard_events(long even_mask);
    3.12  
    3.13 -/* grid.c */
    3.14 -extern void arrange();
    3.15 -
    3.16  /* key.c */
    3.17  extern void update_keys();
    3.18  extern void keypress(XEvent *e);