about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-14 08:34:38 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-14 08:34:38 +0200
commit72655f0ce7abe85853aca98a051df2aab07116f9 (patch)
treedf4325bcb502ca3b2d656eb70d16711776d11638
parent86d9851427710ca0f3ab95ae9b6c20361b56e516 (diff)
downloaddwm-72655f0ce7abe85853aca98a051df2aab07116f9.tar.gz
continued with man page
-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)
 	c->next = *l; /* *l == nil */
 	*l = c;
 
-	XSetWindowBorderWidth(dpy, c->win, 1);
 	XMapRaised(dpy, c->win);
 	XMapRaised(dpy, c->title);
 	XGrabButton(dpy, Button1, Mod1Mask, c->win, False, ButtonPressMask,
@@ -495,6 +494,7 @@ resize(Client *c, Bool inc)
 	if(c->maxh && c->h > c->maxh)
 		c->h = c->maxh;
 	resize_title(c);
+	XSetWindowBorderWidth(dpy, c->win, 1);
 	XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
 	e.type = ConfigureNotify;
 	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
 LIBS = -L${PREFIX}/lib -L/usr/lib -lc -L${X11LIB} -lX11
 
 # Linux/BSD
-CFLAGS = -g -Wall -O2 -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
+CFLAGS = -Os -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
 	-DVERSION=\"${VERSION}\"
-LDFLAGS = -g ${LIBS}
+LDFLAGS = ${LIBS}
+#CFLAGS = -g -Wall -O2 -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
+#	-DVERSION=\"${VERSION}\"
+#LDFLAGS = -g ${LIBS}
 
 
 # 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.
 .TP
 .B \-v
 prints version information to stdout, then exits.
+.SS Default Key Bindings
+.TP 16
+.I Key	
+.I Action
+.TP
+.B Mod1-Return
+Zoom
+.B window
+to the 
+.B master
+track
+.TP
+.B Mod1-k
+Focus previous
+.B window
+.TP
+.B Mod1-j
+Focus next
+.B window
+.TP
+.B Mod1-m
+Maximize current
+.B window
+.TP
+.B Mod1-[0..n]
+Focus
+.B nth
+tag
+.TP
+.B Mod1-space
+(Re-)arrange
+.B all
+windows 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)
 		if(ev->value_mask & CWHeight)
 			c->h = ev->height;
 		if(ev->value_mask & CWBorderWidth)
-			c->border = ev->border_width;
+			c->border = 1;
 		gravitate(c, False);
 		resize(c, True);
 	}
garam <vc@akkartik.com> 2021-04-25 21:35:14 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2021-04-25 21:35:14 -0700 .' href='/akkartik/mu/commit/shell/README.md?h=main&id=1a18c9e24be64b116f7f726d8b2951d5a214e4cd'>1a18c9e2 ^
fa8d337d ^

b2e9887b ^
e6b42204 ^
22a95bd8 ^
0810c7b7 ^
21263b2e ^



2e58ffd6 ^
865f37aa ^




2e58ffd6 ^
b7224ab4 ^










22a95bd8 ^
b7224ab4 ^

2e58ffd6 ^

2e58ffd6 ^

a761d0e4 ^










1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78