diff --git a/hw/xnest/Screen.c b/hw/xnest/Screen.c index d452ede60..314322806 100644 --- a/hw/xnest/Screen.c +++ b/hw/xnest/Screen.c @@ -308,6 +308,7 @@ xnestOpenScreen(ScreenPtr pScreen, int argc, char *argv[]) pScreen->WindowExposures = xnestWindowExposures; pScreen->CopyWindow = xnestCopyWindow; pScreen->ClipNotify = xnestClipNotify; + pScreen->ClearToBackground = xnest_screen_ClearToBackground; /* Pixmap procedures */ diff --git a/hw/xnest/Window.c b/hw/xnest/Window.c index 357d4ca7d..e5c9ba280 100644 --- a/hw/xnest/Window.c +++ b/hw/xnest/Window.c @@ -520,3 +520,11 @@ xnestShapeWindow(WindowPtr pWin) } } } + +void xnest_screen_ClearToBackground(WindowPtr pWin, int x, int y, int w, int h, Bool generateExposures) +{ + xcb_clear_area(xnestUpstreamInfo.conn, + generateExposures, + xnestWindow(pWin), + x, y, w, h); +} diff --git a/hw/xnest/XNWindow.h b/hw/xnest/XNWindow.h index 408da7ed4..68b829711 100644 --- a/hw/xnest/XNWindow.h +++ b/hw/xnest/XNWindow.h @@ -69,4 +69,7 @@ void xnestWindowExposures(WindowPtr pWin, RegionPtr pRgn); void xnestSetShape(WindowPtr pWin, int kind); void xnestShapeWindow(WindowPtr pWin); +/* ScreenRec operations */ +void xnest_screen_ClearToBackground(WindowPtr pWin, int x, int y, int w, int h, Bool generateExposures); + #endif /* XNESTWINDOW_H */