summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client.c2
-rw-r--r--config.mk7
-rw-r--r--dwm.133
-rw-r--r--event.c2
4 files changed, 40 insertions, 4 deletions
diff --git a/client.c b/client.c
index b2318ab..e9075a2 100644
--- a/client.c
+++ b/client.c
@@ -398,7 +398,6 @@ manage(Window w, XWindowAttributes *wa)
398 c->next = *l; /* *l == nil */ 398 c->next = *l; /* *l == nil */
399 *l = c; 399 *l = c;
400 400
401 XSetWindowBorderWidth(dpy, c->win, 1);
402 XMapRaised(dpy, c->win); 401 XMapRaised(dpy, c->win);
403 XMapRaised(dpy, c->title); 402 XMapRaised(dpy, c->title);
404 XGrabButton(dpy, Button1, Mod1Mask, c->win, False, ButtonPressMask, 403 XGrabButton(dpy, Button1, Mod1Mask, c->win, False, ButtonPressMask,
@@ -495,6 +494,7 @@ resize(Client *c, Bool inc)
495 if(c->maxh && c->h > c->maxh) 494 if(c->maxh && c->h > c->maxh)
496 c->h = c->maxh; 495 c->h = c->maxh;
497 resize_title(c); 496 resize_title(c);
497 XSetWindowBorderWidth(dpy, c->win, 1);
498 XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); 498 XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
499 e.type = ConfigureNotify; 499 e.type = ConfigureNotify;
500 e.event = c->win; 500 e.event = c->win;
diff --git a/config.mk b/config.mk
index 39533c2..ed58c1f 100644
--- a/config.mk
+++ b/config.mk
@@ -14,9 +14,12 @@ VERSION = 0.0
14LIBS = -L${PREFIX}/lib -L/usr/lib -lc -L${X11LIB} -lX11 14LIBS = -L${PREFIX}/lib -L/usr/lib -lc -L${X11LIB} -lX11
15 15
16# Linux/BSD 16# Linux/BSD
17CFLAGS = -g -Wall -O2 -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \ 17CFLAGS = -Os -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
18 -DVERSION=\"${VERSION}\" 18 -DVERSION=\"${VERSION}\"
19LDFLAGS = -g ${LIBS} 19LDFLAGS = ${LIBS}
20#CFLAGS = -g -Wall -O2 -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
21# -DVERSION=\"${VERSION}\"
22#LDFLAGS = -g ${LIBS}
20 23
21 24
22# Solaris 25# Solaris
diff --git a/dwm.1 b/dwm.1
index 1e312e9..1c7a5a6 100644
--- a/dwm.1
+++ b/dwm.1
@@ -12,3 +12,36 @@ is a dynamic window manager for X11.
12.TP 12.TP
13.B \-v 13.B \-v
14prints version information to stdout, then exits. 14prints version information to stdout, then exits.
15.SS Default Key Bindings
16.TP 16
17.I Key
18.I Action
19.TP
20.B Mod1-Return
21Zoom
22.B window
23to the
24.B master
25track
26.TP
27.B Mod1-k
28Focus previous
29.B window
30.TP
31.B Mod1-j
32Focus next
33.B window
34.TP
35.B Mod1-m
36Maximize current
37.B window
38.TP
39.B Mod1-[0..n]
40Focus
41.B nth
42tag
43.TP
44.B Mod1-space
45(Re-)arrange
46.B all
47windows tiled
diff --git a/event.c b/event.c
index e85e11f..c55be0f 100644
--- a/event.c
+++ b/event.c
@@ -87,7 +87,7 @@ configurerequest(XEvent *e)
87 if(ev->value_mask & CWHeight) 87 if(ev->value_mask & CWHeight)
88 c->h = ev->height; 88 c->h = ev->height;
89 if(ev->value_mask & CWBorderWidth) 89 if(ev->value_mask & CWBorderWidth)
90 c->border = ev->border_width; 90 c->border = 1;
91 gravitate(c, False); 91 gravitate(c, False);
92 resize(c, True); 92 resize(c, True);
93 } 93 }