Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
added a similiar patch to Daves solution to indicate if there are clients with a...
[dwm.git]
/
client.c
diff --git
a/client.c
b/client.c
index
ed8fea9
..
220d2a0
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-202,7
+202,7
@@
manage(Window w, XWindowAttributes *wa) {
c = emallocz(sizeof(Client));
c->tags = emallocz(ntags * sizeof(Bool));
c->win = w;
c = emallocz(sizeof(Client));
c->tags = emallocz(ntags * sizeof(Bool));
c->win = w;
- c->border =
wa->border_width
;
+ c->border =
0
;
c->x = c->tx = wa->x;
c->y = c->ty = wa->y;
c->w = c->tw = wa->width;
c->x = c->tx = wa->x;
c->y = c->ty = wa->y;
c->w = c->tw = wa->width;
@@
-232,9
+232,7
@@
manage(Window w, XWindowAttributes *wa) {
updatetitle(c);
settags(c, getclient(trans));
if(!c->isfloat)
updatetitle(c);
settags(c, getclient(trans));
if(!c->isfloat)
- c->isfloat = trans
- || (c->maxw && c->minw &&
- c->maxw == c->minw && c->maxh == c->minh);
+ c->isfloat = trans || c->isfixed;
resizetitle(c);
if(clients)
clients->prev = c;
resizetitle(c);
if(clients)
clients->prev = c;
@@
-341,6
+339,8
@@
updatesize(Client *c) {
}
else
c->minw = c->minh = 0;
}
else
c->minw = c->minh = 0;
+ c->isfixed = (c->maxw && c->minw && c->maxh && c->minh &&
+ c->maxw == c->minw && c->maxh == c->minh);
if(c->flags & PWinGravity)
c->grav = size.win_gravity;
else
if(c->flags & PWinGravity)
c->grav = size.win_gravity;
else