diff options
author | vaxerski <[email protected]> | 2023-05-23 14:18:26 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-05-23 14:18:26 +0200 |
commit | 799add8659fe896579f050ee0ddeda63a2df5b91 (patch) | |
tree | 851a4088e84255eb1e08dd3b66c5619ee7de8f39 | |
parent | 90cb5fb6724b4a1c2cb49f09ac101648c8077301 (diff) | |
download | Hyprland-799add8659fe896579f050ee0ddeda63a2df5b91.tar.gz Hyprland-799add8659fe896579f050ee0ddeda63a2df5b91.zip |
groupbars: fix reserved area on titles
-rw-r--r-- | src/render/decorations/CHyprGroupBarDecoration.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render/decorations/CHyprGroupBarDecoration.cpp b/src/render/decorations/CHyprGroupBarDecoration.cpp index 382046fb..9a27c933 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -157,7 +157,9 @@ void CHyprGroupBarDecoration::draw(CMonitor* pMonitor, float a, const Vector2D& } SWindowDecorationExtents CHyprGroupBarDecoration::getWindowDecorationReservedArea() { - return SWindowDecorationExtents{{0, BAR_INDICATOR_HEIGHT + BAR_PADDING_OUTER_VERT * 2}, {}}; + static auto* const PRENDERTITLES = &g_pConfigManager->getConfigValuePtr("misc:render_titles_in_groupbar")->intValue; + static auto* const PTITLEFONTSIZE = &g_pConfigManager->getConfigValuePtr("misc:groupbar_titles_font_size")->intValue; + return SWindowDecorationExtents{{0, BAR_INDICATOR_HEIGHT + BAR_PADDING_OUTER_VERT * 2 + (*PRENDERTITLES ? *PTITLEFONTSIZE : 0)}, {}}; } CTitleTex* CHyprGroupBarDecoration::textureFromTitle(const std::string& title) { |