mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-22 19:28:29 +00:00
@@ -76,7 +76,8 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) {
|
|||||||
if (RDATA->dontRound)
|
if (RDATA->dontRound)
|
||||||
rounding = 0;
|
rounding = 0;
|
||||||
|
|
||||||
const bool CANDISABLEBLEND = RDATA->alpha >= 1.f && rounding == 0 && surface->opaque;
|
const bool WINDOWOPAQUE = RDATA->pWindow && RDATA->pWindow->m_pWLSurface.wlr() == surface ? RDATA->pWindow->opaque() : false;
|
||||||
|
const bool CANDISABLEBLEND = RDATA->alpha * RDATA->fadeAlpha >= 1.f && rounding == 0 && (WINDOWOPAQUE || surface->opaque);
|
||||||
|
|
||||||
if (CANDISABLEBLEND)
|
if (CANDISABLEBLEND)
|
||||||
g_pHyprOpenGL->blend(false);
|
g_pHyprOpenGL->blend(false);
|
||||||
|
Reference in New Issue
Block a user