mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
quick patch for hl38.1
This commit is contained in:
parent
b22f13640f
commit
0177c6fc45
1 changed files with 3 additions and 9 deletions
|
@ -1476,7 +1476,7 @@ void Hy3Layout::applyNodeDataToWindow(Hy3Node* node, bool no_animation) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto workspace_rules = g_pConfigManager->getWorkspaceRulesFor(node->workspace);
|
const auto workspace_rule = g_pConfigManager->getWorkspaceRuleFor(node->workspace);
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
static const auto gaps_in = ConfigValue<Hyprlang::CUSTOMTYPE, CCssGapData>("general:gaps_in");
|
static const auto gaps_in = ConfigValue<Hyprlang::CUSTOMTYPE, CCssGapData>("general:gaps_in");
|
||||||
|
@ -1512,14 +1512,8 @@ void Hy3Layout::applyNodeDataToWindow(Hy3Node* node, bool no_animation) {
|
||||||
|| (window->m_bIsFullscreen && window->m_pWorkspace->m_efFullscreenMode == FULLSCREEN_FULL
|
|| (window->m_bIsFullscreen && window->m_pWorkspace->m_efFullscreenMode == FULLSCREEN_FULL
|
||||||
)))
|
)))
|
||||||
{
|
{
|
||||||
window->m_sSpecialRenderData.border = *no_gaps_when_only == 2;
|
window->m_sSpecialRenderData.border = workspace_rule.border.value_or(*no_gaps_when_only == 2);
|
||||||
for (auto& workspace_rule: workspace_rules) {
|
|
||||||
if (workspace_rule.border.has_value()) {
|
|
||||||
// Hyprland src/desktop/Window.cpp, line 1107, SHA 5e8c25d498ed5cb7852ae74a876b0c138a62d59d
|
|
||||||
// does not break the loop, the last value gets to decide
|
|
||||||
window->m_sSpecialRenderData.border = workspace_rule.border.value();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
window->m_sSpecialRenderData.rounding = false;
|
window->m_sSpecialRenderData.rounding = false;
|
||||||
window->m_sSpecialRenderData.shadow = false;
|
window->m_sSpecialRenderData.shadow = false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue