From dd094c8270b671e64a5d4ee1a2f6f5ecf9c53098 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 12 Aug 2024 13:57:11 +0200 Subject: [PATCH] (!1654) Xnest: replace NotUseful by XCB_BACKING_STORE_NOT_USEFUL Use xcb's defines instead of Xlib's ones. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xnest/Screen.c | 4 ++-- hw/xnest/Window.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xnest/Screen.c b/hw/xnest/Screen.c index 3fab47892..1c0267b32 100644 --- a/hw/xnest/Screen.c +++ b/hw/xnest/Screen.c @@ -250,8 +250,8 @@ xnestOpenScreen(ScreenPtr pScreen, int argc, char *argv[]) pScreen->defColormap = (Colormap) FakeClientID(0); pScreen->minInstalledCmaps = MINCMAPS; pScreen->maxInstalledCmaps = MAXCMAPS; - pScreen->backingStoreSupport = NotUseful; - pScreen->saveUnderSupport = NotUseful; + pScreen->backingStoreSupport = XCB_BACKING_STORE_NOT_USEFUL; + pScreen->saveUnderSupport = XCB_BACKING_STORE_NOT_USEFUL; pScreen->whitePixel = xnestWhitePixel; pScreen->blackPixel = xnestBlackPixel; /* GCperDepth */ diff --git a/hw/xnest/Window.c b/hw/xnest/Window.c index d2fed8e36..51e3e252a 100644 --- a/hw/xnest/Window.c +++ b/hw/xnest/Window.c @@ -86,7 +86,7 @@ xnestCreateWindow(WindowPtr pWin) else { mask = XCB_CW_EVENT_MASK | XCB_CW_BACKING_STORE; attributes.event_mask = ExposureMask; - attributes.backing_store = NotUseful; + attributes.backing_store = XCB_BACKING_STORE_NOT_USEFUL; if (pWin->parent) { if (pWin->optional &&