summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorKainoa Kanter <44733677+ThatOneCalculator@users.noreply.github.com>2022-10-20 12:36:27 -0700
committerGitHub <noreply@github.com>2022-10-20 20:36:27 +0100
commitca2d2db0efd7e9cbbc61321c591b732c851db61a (patch)
treede080347c67004a34542e5a4be921ed72e1fc051 /src/render/OpenGL.cpp
parent1ccb0b5f96ad2bac353e1e6e9935a4021d9a43a7 (diff)
Add windowrules for noblur and noshadow (#884)
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index fef110d3..1f910d30 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -799,7 +799,7 @@ void CHyprOpenGLImpl::renderBorder(wlr_box* box, const CColor& col, int round) {
RASSERT((box->width > 0 && box->height > 0), "Tried to render rect with width/height < 0!");
RASSERT(m_RenderData.pMonitor, "Tried to render rect without begin()!");
- if (!pixman_region32_not_empty(m_RenderData.pDamage))
+ if (!pixman_region32_not_empty(m_RenderData.pDamage) || (m_pCurrentWindow && m_pCurrentWindow->m_sAdditionalConfigData.forceNoBorder))
return;
static auto *const PBORDERSIZE = &g_pConfigManager->getConfigValuePtr("general:border_size")->intValue;