Browse Source

added max

main
Anselm R. Garbe 18 years ago
parent
commit
6db5ffb6c9
3 changed files with 15 additions and 3 deletions
  1. +12
    -0
      client.c
  2. +1
    -0
      kb.c
  3. +2
    -3
      wm.h

+ 12
- 0
client.c View File

@ -11,6 +11,18 @@
#include "util.h"
#include "wm.h"
void
max(void *aux)
{
if(!stack)
return;
stack->x = sx;
stack->y = bh;
stack->w = sw - 2;
stack->h = sh - bh - 2;
resize(stack);
}
void
arrange(void *aux)
{


+ 1
- 0
kb.c View File

@ -23,6 +23,7 @@ static Key key[] = {
{ Mod1Mask, XK_k, sel, "prev" },
{ Mod1Mask, XK_j, sel, "next" },
{ Mod1Mask, XK_g, arrange, NULL },
{ Mod1Mask, XK_m, max, NULL },
{ Mod1Mask | ShiftMask, XK_c, kill, NULL },
{ Mod1Mask | ShiftMask, XK_q, quit, NULL },
};


+ 2
- 3
wm.h View File

@ -72,13 +72,12 @@ extern void raise(Client *c);
extern void lower(Client *c);
extern void kill(void *aux);
extern void sel(void *aux);
extern void max(void *aux);
extern void arrange();
/* event.c */
extern void discard_events(long even_mask);
/* grid.c */
extern void arrange();
/* key.c */
extern void update_keys();
extern void keypress(XEvent *e);


Loading…
Cancel
Save