Xnest: directly pass ClearArea request to upstream server

Instead of going through mi machinery, just pass the ClearArea
request to the upstream window.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-08-01 20:14:37 +02:00
parent 6aef795cc3
commit 37d6d3ae98
3 changed files with 10 additions and 0 deletions

View File

@ -309,6 +309,7 @@ xnestOpenScreen(ScreenPtr pScreen, int argc, char *argv[])
pScreen->WindowExposures = xnestWindowExposures;
pScreen->CopyWindow = xnestCopyWindow;
pScreen->ClipNotify = xnestClipNotify;
pScreen->ClearToBackground = xnestClearToBackground;
/* Pixmap procedures */

View File

@ -525,3 +525,11 @@ xnestShapeWindow(WindowPtr pWin)
}
}
}
void xnestClearToBackground(WindowPtr pWin, int x, int y, int w, int h, Bool generateExposures)
{
xcb_clear_area(xnestUpstreamInfo.conn,
generateExposures,
xnestWindow(pWin),
x, y, w, h);
}

View File

@ -68,5 +68,6 @@ void xnestClipNotify(WindowPtr pWin, int dx, int dy);
void xnestWindowExposures(WindowPtr pWin, RegionPtr pRgn);
void xnestSetShape(WindowPtr pWin, int kind);
void xnestShapeWindow(WindowPtr pWin);
void xnestClearToBackground(WindowPtr pWin, int x, int y, int w, int h, Bool generateExposures);
#endif /* XNESTWINDOW_H */