bugfix: bringing only the final fullscreen window to the foreground in the tiling window tree

This commit is contained in:
Matthew Kosarek 2024-06-17 14:16:29 -04:00
parent 9b3f31f044
commit 9e0c553c63

View File

@ -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()