From f714b178884fd5f29241d5bf5352203aee79517d 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 b2b5f7be2..cd42e1bff 100644 --- a/hw/xnest/Init.c +++ b/hw/xnest/Init.c @@ -133,7 +133,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); }