mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-20 01:40:18 -05:00
feat: support restore stack from non-tile state
This commit is contained in:
parent
8a924494c6
commit
c05eec7f53
3 changed files with 47 additions and 6 deletions
|
|
@ -1217,13 +1217,15 @@ int32_t togglefloating(const Arg *arg) {
|
|||
if (!sel)
|
||||
return 0;
|
||||
|
||||
bool isfloating = sel->isfloating;
|
||||
|
||||
if ((sel->isfullscreen || sel->ismaximizescreen)) {
|
||||
sel->isfloating = 1;
|
||||
isfloating = 1;
|
||||
} else {
|
||||
sel->isfloating = !sel->isfloating;
|
||||
isfloating = !sel->isfloating;
|
||||
}
|
||||
|
||||
setfloating(sel, sel->isfloating);
|
||||
setfloating(sel, isfloating);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue