diff options
Diffstat (limited to 'src/render')
| -rw-r--r-- | src/render/decorations/CHyprDropShadowDecoration.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/decorations/CHyprDropShadowDecoration.cpp b/src/render/decorations/CHyprDropShadowDecoration.cpp index 20dbbb30..7f472f5c 100644 --- a/src/render/decorations/CHyprDropShadowDecoration.cpp +++ b/src/render/decorations/CHyprDropShadowDecoration.cpp @@ -84,6 +84,9 @@ void CHyprDropShadowDecoration::draw(SMonitor* pMonitor, float a) { fullBox.x -= pMonitor->vecPosition.x; fullBox.y -= pMonitor->vecPosition.y; + if (fullBox.width < 1 || fullBox.height < 1) + return; // don't draw invisible shadows + if (*PSHADOWIGNOREWINDOW) { glClearStencil(0); glClear(GL_STENCIL_BUFFER_BIT); |
