mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 11:45:58 +01:00
renderer: avoid drawing invisibly small surfaces in renderSurface
This commit is contained in:
parent
92311d260a
commit
c6233a790f
1 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,9 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) {
|
|||
windowBox.height = RDATA->h - y;
|
||||
}
|
||||
|
||||
if (windowBox.width <= 1 || windowBox.height <= 1)
|
||||
return; // invisible
|
||||
|
||||
g_pHyprRenderer->calculateUVForSurface(RDATA->pWindow, surface, RDATA->squishOversized);
|
||||
|
||||
scaleBox(&windowBox, RDATA->pMonitor->scale);
|
||||
|
|
Loading…
Reference in a new issue