pinosaur
/
dwm.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
applied anydots proposal to let togglefloating restore fixed windows
[dwm.git]
/
client.c
diff --git
a/client.c
b/client.c
index
3e9b239
..
040dd15
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-304,7
+304,9
@@
void
togglefloating(const char *arg) {
if(!sel || lt->arrange == floating)
return;
togglefloating(const char *arg) {
if(!sel || lt->arrange == floating)
return;
- sel->isfloating = !sel->isfloating || sel->isfixed;
+ sel->isfloating = !sel->isfloating;
+ if(sel->isfloating && sel->isfixed)
+ resize(sel, sel->x, sel->y, sel->minw, sel->minh, True);
lt->arrange();
}
lt->arrange();
}