mirror of
https://github.com/miracle-wm-org/miracle-wm.git
synced 2024-11-26 12:34:40 +03:00
bugfix: bringing only the final fullscreen window to the foreground in the tiling window tree
This commit is contained in:
parent
9b3f31f044
commit
9e0c553c63
@ -820,6 +820,7 @@ void TilingWindowTree::show()
|
||||
}
|
||||
|
||||
is_hidden = false;
|
||||
std::shared_ptr<LeafNode> fullscreen_node = nullptr;
|
||||
foreach_node([&](auto node)
|
||||
{
|
||||
auto leaf_node = Node::as_leaf(node);
|
||||
@ -829,12 +830,15 @@ void TilingWindowTree::show()
|
||||
leaf_node->commit_changes();
|
||||
|
||||
if (leaf_node->is_fullscreen())
|
||||
{
|
||||
tiling_interface.select_active_window(leaf_node->get_window());
|
||||
tiling_interface.raise(leaf_node->get_window());
|
||||
}
|
||||
fullscreen_node = leaf_node;
|
||||
}
|
||||
});
|
||||
|
||||
if (fullscreen_node)
|
||||
{
|
||||
tiling_interface.select_active_window(fullscreen_node->get_window());
|
||||
tiling_interface.raise(fullscreen_node->get_window());
|
||||
}
|
||||
}
|
||||
|
||||
bool TilingWindowTree::is_empty()
|
||||
|
Loading…
Reference in New Issue
Block a user