Mercurial > aewl
comparison client.c @ 320:30b447bad2e5
windows which have set transient_for hint inherit the transient_for window tags now
author | arg@localhost.10kloc.org |
---|---|
date | Mon, 21 Aug 2006 17:35:37 +0200 |
parents | 94d2d7658673 |
children | 96d09fd98e89 |
comparison
equal
deleted
inserted
replaced
319:94d2d7658673 | 320:30b447bad2e5 |
---|---|
212 } | 212 } |
213 | 213 |
214 void | 214 void |
215 manage(Window w, XWindowAttributes *wa) | 215 manage(Window w, XWindowAttributes *wa) |
216 { | 216 { |
217 unsigned int i; | |
217 Client *c, *tc; | 218 Client *c, *tc; |
218 Window trans; | 219 Window trans; |
219 XSetWindowAttributes twa; | 220 XSetWindowAttributes twa; |
220 | 221 |
221 c = emallocz(sizeof(Client)); | 222 c = emallocz(sizeof(Client)); |
259 | 260 |
260 grabbutton(c, Button1, MODKEY); | 261 grabbutton(c, Button1, MODKEY); |
261 grabbutton(c, Button2, MODKEY); | 262 grabbutton(c, Button2, MODKEY); |
262 grabbutton(c, Button3, MODKEY); | 263 grabbutton(c, Button3, MODKEY); |
263 | 264 |
264 settags(c); | 265 if((tc = getclient(trans))) /* inherit tags */ |
266 for(i = 0; i < ntags; i++) | |
267 c->tags[i] = tc->tags[i]; | |
268 else | |
269 settags(c); | |
265 if(!c->isfloat) | 270 if(!c->isfloat) |
266 c->isfloat = trans | 271 c->isfloat = trans |
267 || (c->maxw && c->minw && | 272 || (c->maxw && c->minw && |
268 c->maxw == c->minw && c->maxh == c->minh); | 273 c->maxw == c->minw && c->maxh == c->minh); |
269 settitle(c); | 274 settitle(c); |