mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
Make hy3:no_gaps_when_only affect maximized windows
This keeps hy3 in line with both of Hyprland's builtin layouts' no_gaps_when_only behavior, which removes gaps on maximized windows even if other windows exist in the workspace.
This commit is contained in:
parent
1376a4f3d0
commit
8d05dc7c28
1 changed files with 1 additions and 1 deletions
|
@ -1427,7 +1427,7 @@ void Hy3Layout::applyNodeDataToWindow(Hy3Node* node, bool no_animation) {
|
|||
&& root_node->data.as_group.children.front()->data.type == Hy3NodeType::Window;
|
||||
|
||||
if (!g_pCompositor->isWorkspaceSpecial(window->m_iWorkspaceID)
|
||||
&& ((*single_window_no_gaps && only_node)
|
||||
&& ((*single_window_no_gaps && (only_node || window->m_bIsFullscreen))
|
||||
|| (window->m_bIsFullscreen
|
||||
&& g_pCompositor->getWorkspaceByID(window->m_iWorkspaceID)->m_efFullscreenMode
|
||||
== FULLSCREEN_FULL)))
|
||||
|
|
Loading…
Add table
Reference in a new issue