don't decorate on only no gaps

This commit is contained in:
vaxerski 2022-09-23 16:47:58 +01:00
parent e5d143b238
commit 695411f1bd
5 changed files with 11 additions and 0 deletions

View file

@ -70,6 +70,9 @@ void CHyprGroupBarDecoration::draw(CMonitor* pMonitor, float a) {
if (barsToDraw < 1 || m_pWindow->m_bHidden || !g_pCompositor->windowValidMapped(m_pWindow))
return;
if (!m_pWindow->m_sSpecialRenderData.decorate)
return;
const int PAD = 2; //2px
const int BARW = (m_vLastWindowSize.x - PAD * (barsToDraw - 1)) / barsToDraw;