diff --git a/hw/xnest/Window.c b/hw/xnest/Window.c index a1b31ee4a..3df6420ce 100644 --- a/hw/xnest/Window.c +++ b/hw/xnest/Window.c @@ -266,11 +266,11 @@ xnestChangeWindowAttributes(WindowPtr pWin, unsigned long mask) if (mask & XCB_CW_BACK_PIXMAP) switch (pWin->backgroundState) { - case None: + case XCB_BACK_PIXMAP_NONE: attributes.background_pixmap = None; break; - case ParentRelative: + case XCB_BACK_PIXMAP_PARENT_RELATIVE: attributes.background_pixmap = ParentRelative; break;