From 3a0320ae50b0fed3a0f4ee2e54d74ad82f2d282f Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia Date: Sat, 21 Mar 2026 17:09:30 -0700 Subject: [PATCH] [PR #2183] rootless: Fix Glyphs damage bounding box to correctly compute union PR: https://github.com/X11Libre/xserver/pull/2183 --- miext/rootless/rootlessScreen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miext/rootless/rootlessScreen.c b/miext/rootless/rootlessScreen.c index e2ece791d..60f88b5d4 100644 --- a/miext/rootless/rootlessScreen.c +++ b/miext/rootless/rootlessScreen.c @@ -314,8 +314,8 @@ RootlessGlyphs(CARD8 op, PicturePtr pSrc, PicturePtr pDst, x2 = x1 + glyph->info.width; y2 = y1 + glyph->info.height; - box.x1 = max(box.x1, x1); - box.y1 = max(box.y1, y1); + box.x1 = min(box.x1, x1); + box.y1 = min(box.y1, y1); box.x2 = max(box.x2, x2); box.y2 = max(box.y2, y2);