mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-09 08:31:54 -07:00
renderer: avoid drawing invisibly small surfaces in renderSurface
This commit is contained in:
@@ -61,6 +61,9 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) {
|
|||||||
windowBox.height = RDATA->h - y;
|
windowBox.height = RDATA->h - y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (windowBox.width <= 1 || windowBox.height <= 1)
|
||||||
|
return; // invisible
|
||||||
|
|
||||||
g_pHyprRenderer->calculateUVForSurface(RDATA->pWindow, surface, RDATA->squishOversized);
|
g_pHyprRenderer->calculateUVForSurface(RDATA->pWindow, surface, RDATA->squishOversized);
|
||||||
|
|
||||||
scaleBox(&windowBox, RDATA->pMonitor->scale);
|
scaleBox(&windowBox, RDATA->pMonitor->scale);
|
||||||
|
Reference in New Issue
Block a user