From 70acda3fba608eaeed0ec006a0b3a7b4c8be46b4 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 5 Aug 2024 09:57:20 +0200 Subject: [PATCH] Xnest: replace XChangeWindowAttributes() by xcb_change_window_attributes() Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xnest/Window.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/hw/xnest/Window.c b/hw/xnest/Window.c index 9a532dfb7..5a4aa8653 100644 --- a/hw/xnest/Window.c +++ b/hw/xnest/Window.c @@ -273,7 +273,7 @@ xnestConfigureWindow(WindowPtr pWin, unsigned int mask) Bool xnestChangeWindowAttributes(WindowPtr pWin, unsigned long mask) { - XSetWindowAttributes attributes; + XnSetWindowAttr attributes; if (mask & XCB_CW_BACK_PIXMAP) switch (pWin->backgroundState) { @@ -356,10 +356,14 @@ xnestChangeWindowAttributes(WindowPtr pWin, unsigned long mask) if (mask & XCB_CW_CURSOR) /* this is handled in cursor code */ mask &= ~XCB_CW_CURSOR; - if (mask) - XChangeWindowAttributes(xnestDisplay, xnestWindow(pWin), - mask, &attributes); - + if (mask) { + uint32_t values[32]; + xnest_encode_window_attr(attributes, mask, values); + xcb_change_window_attributes(xnestUpstreamInfo.conn, + xnestWindow(pWin), + mask, + values); + } return TRUE; }