Archived
opt: more reasonable floating and full-screen state switching
This commit is contained in:
1 parent
f1ebf1c7c2
commit
ac48efb49a
1 file changed
+7
-1
+7
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user