From 1f4cbdb448048ace3dad394f88f4ced892f29399 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 20 Aug 2024 16:05:56 +0200 Subject: [PATCH] Xnest: replace XConnectionNumber() by xcb_get_file_descriptor() Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xnest/Init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/xnest/Init.c b/hw/xnest/Init.c index a24841971..4be121ac4 100644 --- a/hw/xnest/Init.c +++ b/hw/xnest/Init.c @@ -134,7 +134,10 @@ InitInput(int argc, char *argv[]) mieqInit(); - SetNotifyFd(XConnectionNumber(xnestDisplay), xnestNotifyConnection, X_NOTIFY_READ, NULL); + SetNotifyFd(xcb_get_file_descriptor(xnestUpstreamInfo.conn), + xnestNotifyConnection, + X_NOTIFY_READ, + NULL); RegisterBlockAndWakeupHandlers(xnestBlockHandler, xnestWakeupHandler, NULL); }