Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
maybe this might work
[dwm.git]
/
client.c
diff --git
a/client.c
b/client.c
index
46693cd
..
cac848e
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-99,14
+99,6
@@
focus(Client *c)
}
}
if(c) {
}
}
if(c) {
- if((c->isfloat || arrange == dofloat) && (c != clients)) {
- detach(c);
- if(clients) {
- clients->prev = c;
- c->next = clients;
- }
- clients = c;
- }
grabbuttons(c, True);
drawtitle(c);
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
grabbuttons(c, True);
drawtitle(c);
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
@@
-251,6
+243,8
@@
manage(Window w, XWindowAttributes *wa)
c->isfloat = trans
|| (c->maxw && c->minw &&
c->maxw == c->minw && c->maxh == c->minh);
c->isfloat = trans
|| (c->maxw && c->minw &&
c->maxw == c->minw && c->maxh == c->minh);
+ if(c->isfloat)
+ c->weight = ntags;
if(clients)
clients->prev = c;
if(clients)
clients->prev = c;