mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-08 03:02:06 -04:00
fix: don't remove the leaf from the tree when fullscreening it so the windows doesnst split randomly
This commit is contained in:
parent
62ff542334
commit
e07441cc43
1 changed files with 11 additions and 3 deletions
|
|
@ -257,9 +257,12 @@ static void dwindle_assign(DwindleNode *node, int32_t ax, int32_t ay,
|
|||
|
||||
if (!node->is_split) {
|
||||
if (node->client) {
|
||||
if (!node->client->isfullscreen &&
|
||||
!node->client->ismaximizescreen) {
|
||||
struct wlr_box box = {ax, ay, MAX(1, aw), MAX(1, ah)};
|
||||
resize(node->client, box, 0);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -589,10 +592,15 @@ void dwindle(Monitor *m) {
|
|||
found = true;
|
||||
break;
|
||||
}
|
||||
if (!found)
|
||||
if (!found) {
|
||||
if (VISIBLEON(leaves[i]->client, m) &&
|
||||
(leaves[i]->client->isfullscreen ||
|
||||
leaves[i]->client->ismaximizescreen))
|
||||
continue;
|
||||
dwindle_remove(root, leaves[i]->client);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Client *focused = focustop(m);
|
||||
if (focused && !dwindle_find_leaf(*root, focused))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue