diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index a20ac4318..570fd1f6d 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -36,6 +36,7 @@ void CConfigManager::setDefaultVars() { configValues["general:col.active_border"].intValue = 0xffffffff; configValues["general:col.inactive_border"].intValue = 0xff444444; configValues["general:cursor_inactive_timeout"].intValue = 0; + configValues["general:disable_hyprland_logo"].intValue = 0; configValues["debug:int"].intValue = 0; configValues["debug:log_damage"].intValue = 0; diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index c868c3452..42dcec1ad 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -969,9 +969,14 @@ void CHyprOpenGLImpl::createBGTextureForMonitor(SMonitor* pMonitor) { void CHyprOpenGLImpl::clearWithTex() { RASSERT(m_RenderData.pMonitor, "Tried to render BGtex without begin()!"); - wlr_box box = {0, 0, m_RenderData.pMonitor->vecTransformedSize.x, m_RenderData.pMonitor->vecTransformedSize.y}; + static auto *const PRENDERTEX = &g_pConfigManager->getConfigValuePtr("general:disable_hyprland_logo")->intValue; - renderTexture(m_mMonitorBGTextures[m_RenderData.pMonitor], &box, 255, 0); + if (!*PRENDERTEX) { + wlr_box box = {0, 0, m_RenderData.pMonitor->vecTransformedSize.x, m_RenderData.pMonitor->vecTransformedSize.y}; + renderTexture(m_mMonitorBGTextures[m_RenderData.pMonitor], &box, 255, 0); + } else { + clear(CColor(17,17,17,255)); + } } void CHyprOpenGLImpl::destroyMonitorResources(SMonitor* pMonitor) {