mirror of git://git.suckless.org/dwm
added max
This commit is contained in:
parent
4641aa2925
commit
6db5ffb6c9
12
client.c
12
client.c
|
@ -11,6 +11,18 @@
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "wm.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
|
void
|
||||||
arrange(void *aux)
|
arrange(void *aux)
|
||||||
{
|
{
|
||||||
|
|
1
kb.c
1
kb.c
|
@ -23,6 +23,7 @@ static Key key[] = {
|
||||||
{ Mod1Mask, XK_k, sel, "prev" },
|
{ Mod1Mask, XK_k, sel, "prev" },
|
||||||
{ Mod1Mask, XK_j, sel, "next" },
|
{ Mod1Mask, XK_j, sel, "next" },
|
||||||
{ Mod1Mask, XK_g, arrange, NULL },
|
{ Mod1Mask, XK_g, arrange, NULL },
|
||||||
|
{ Mod1Mask, XK_m, max, NULL },
|
||||||
{ Mod1Mask | ShiftMask, XK_c, kill, NULL },
|
{ Mod1Mask | ShiftMask, XK_c, kill, NULL },
|
||||||
{ Mod1Mask | ShiftMask, XK_q, quit, NULL },
|
{ Mod1Mask | ShiftMask, XK_q, quit, NULL },
|
||||||
};
|
};
|
||||||
|
|
5
wm.h
5
wm.h
|
@ -72,13 +72,12 @@ extern void raise(Client *c);
|
||||||
extern void lower(Client *c);
|
extern void lower(Client *c);
|
||||||
extern void kill(void *aux);
|
extern void kill(void *aux);
|
||||||
extern void sel(void *aux);
|
extern void sel(void *aux);
|
||||||
|
extern void max(void *aux);
|
||||||
|
extern void arrange();
|
||||||
|
|
||||||
/* event.c */
|
/* event.c */
|
||||||
extern void discard_events(long even_mask);
|
extern void discard_events(long even_mask);
|
||||||
|
|
||||||
/* grid.c */
|
|
||||||
extern void arrange();
|
|
||||||
|
|
||||||
/* key.c */
|
/* key.c */
|
||||||
extern void update_keys();
|
extern void update_keys();
|
||||||
extern void keypress(XEvent *e);
|
extern void keypress(XEvent *e);
|
||||||
|
|
Loading…
Reference in New Issue