diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2022-09-25 19:32:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-25 19:32:24 +0100 |
| commit | f70b57f360f8117ecca67d6d7f75c1f87b098794 (patch) | |
| tree | 77126f8d49917fc0bcd44af7859e88fb88d7bfaa /src/render/decorations/CHyprDropShadowDecoration.cpp | |
| parent | 190229942f60ea5b8905a673ddea44c05da14de3 (diff) | |
| parent | bf3f519eb76bfa8d5f7d71f882b7b803c699aee1 (diff) | |
Merge pull request #732 from Dickby/main
Remove trailing whitespace.
Diffstat (limited to 'src/render/decorations/CHyprDropShadowDecoration.cpp')
| -rw-r--r-- | src/render/decorations/CHyprDropShadowDecoration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/decorations/CHyprDropShadowDecoration.cpp b/src/render/decorations/CHyprDropShadowDecoration.cpp index 8c9b23a3..38de306d 100644 --- a/src/render/decorations/CHyprDropShadowDecoration.cpp +++ b/src/render/decorations/CHyprDropShadowDecoration.cpp @@ -90,7 +90,7 @@ void CHyprDropShadowDecoration::draw(CMonitor* pMonitor, float a) { // draw the shadow wlr_box fullBox = {m_vLastWindowPos.x - m_seExtents.topLeft.x + 2, m_vLastWindowPos.y - m_seExtents.topLeft.y + 2, m_vLastWindowSize.x + m_seExtents.topLeft.x + m_seExtents.bottomRight.x - 4, m_vLastWindowSize.y + m_seExtents.topLeft.y + m_seExtents.bottomRight.y - 4}; - + fullBox.x -= pMonitor->vecPosition.x; fullBox.y -= pMonitor->vecPosition.y; @@ -111,7 +111,7 @@ void CHyprDropShadowDecoration::draw(CMonitor* pMonitor, float a) { wlr_box windowBox = {m_vLastWindowPos.x - pMonitor->vecPosition.x, m_vLastWindowPos.y - pMonitor->vecPosition.y, m_vLastWindowSize.x, m_vLastWindowSize.y}; scaleBox(&windowBox, pMonitor->scale); - + if (windowBox.width < 1 || windowBox.height < 1) { glClearStencil(0); glClear(GL_STENCIL_BUFFER_BIT); |
