From 24e67850801c3b39ebb7a14073094098d7b5ab9b Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 20 Aug 2024 16:05:56 +0200 Subject: [PATCH] (!1654) 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 fd816b7cd..14c2fcff0 100644 --- a/hw/xnest/Init.c +++ b/hw/xnest/Init.c @@ -131,7 +131,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); }