about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-07-19 14:11:27 +0200
committerarg@10ksloc.org <unknown>2006-07-19 14:11:27 +0200
commit4491bdda69f20d976bd61ba92b766dac56c07212 (patch)
treed79c5edc1dcbc77825c29817693ba229533ef87a
parent8af1d973323bd799c1ec021bb7c16860e120cf92 (diff)
downloaddwm-4491bdda69f20d976bd61ba92b766dac56c07212.tar.gz
fixed the bug mentioned by Sander
-rw-r--r--client.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/client.c b/client.c
index b1328d4..3b6a0e1 100644
--- a/client.c
+++ b/client.c
@@ -25,7 +25,11 @@ resizetitle(Client *c)
 		c->bw = *c->w + 2;
 	c->bx = *c->x + *c->w - c->bw + 2;
 	c->by = *c->y;
-	XMoveResizeWindow(dpy, c->title, c->bx, c->by, c->bw, c->bh);
+	if(c->tags[tsel])
+		XMoveResizeWindow(dpy, c->title, c->bx, c->by, c->bw, c->bh);
+	else
+		XMoveResizeWindow(dpy, c->title, c->bx + 2 * sw, c->by, c->bw, c->bh);
+
 }
 
 static int
@@ -258,10 +262,8 @@ manage(Window w, XWindowAttributes *wa)
 		focus(c);
 	}
 	else {
-		ban(c);
 		XMapRaised(dpy, c->win);
 		XMapRaised(dpy, c->title);
-		XSync(dpy, False);
 	}
 }
 
@@ -319,9 +321,11 @@ resize(Client *c, Bool inc, Corner sticky)
 		*c->x = right - *c->w;
 	if(sticky == BotLeft || sticky == BotRight)
 		*c->y = bottom - *c->h;
+
 	resizetitle(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;
 	e.window = c->win;
a> 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142