mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-22 05:34:18 -04:00
opt: dont restore size per whe toggle_all_floating
This commit is contained in:
parent
21b30f179d
commit
eeeea2d57b
1 changed files with 8 additions and 0 deletions
|
|
@ -1874,8 +1874,16 @@ int32_t toggle_all_floating(const Arg *arg) {
|
||||||
|
|
||||||
Client *c = NULL;
|
Client *c = NULL;
|
||||||
bool should_floating = !selmon->sel->isfloating;
|
bool should_floating = !selmon->sel->isfloating;
|
||||||
|
|
||||||
wl_list_for_each(c, &clients, link) {
|
wl_list_for_each(c, &clients, link) {
|
||||||
if (VISIBLEON(c, selmon)) {
|
if (VISIBLEON(c, selmon)) {
|
||||||
|
|
||||||
|
if (c->isfloating && !should_floating) {
|
||||||
|
c->old_master_inner_per = 0.0f;
|
||||||
|
c->old_stack_inner_per = 0.0f;
|
||||||
|
set_size_per(selmon, c);
|
||||||
|
}
|
||||||
|
|
||||||
if (c->isfloating != should_floating) {
|
if (c->isfloating != should_floating) {
|
||||||
setfloating(c, should_floating);
|
setfloating(c, should_floating);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue