From f61464a794b787898b9e67e4d4a7cb1848d642da Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 15 Feb 2024 16:15:02 +0100 Subject: [PATCH] (submit/xnest-expose-events) Xnest: fix resending expose events MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on bug report by François Ouellet: https://gitlab.freedesktop.org/xorg/xserver/-/issues/132 > Expose Events are sent with bad coordinates. Using xtrace, I see lines like this one : > > 000:>:0436: Event Expose(12) window=0x00200023 x=65535 y=65533 width=1 height=3 count=0x0000 > > and the application in the Xnest ignores it. > > If I apply the attached patch, it seems to work fine (for me). Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xnest/Events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xnest/Events.c b/hw/xnest/Events.c index ed09d22e2..e28ce4ca5 100644 --- a/hw/xnest/Events.c +++ b/hw/xnest/Events.c @@ -95,7 +95,7 @@ xnestCollectExposures(void) RegionInit(&Rgn, &Box, 1); - miSendExposures(pWin, &Rgn, Box.x2, Box.y2); + miSendExposures(pWin, &Rgn, 0, 0); } } }