mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-10 13:29:55 -05:00
opt: more reasonable floating and full-screen state switching
This commit is contained in:
parent
f1ebf1c7c2
commit
ac48efb49a
1 changed files with 7 additions and 1 deletions
|
|
@ -6440,7 +6440,13 @@ void togglefloating(const Arg *arg) {
|
|||
if (!sel)
|
||||
return;
|
||||
|
||||
setfloating(sel, !sel->isfloating);
|
||||
if ((sel->isfullscreen || sel->ismaxmizescreen)) {
|
||||
sel->isfloating = 1;
|
||||
} else {
|
||||
sel->isfloating = !sel->isfloating;
|
||||
}
|
||||
|
||||
setfloating(sel, sel->isfloating);
|
||||
}
|
||||
|
||||
void togglefakefullscreen(const Arg *arg) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue