From 65ffb115b4ad42fc5881a0f2fdcba5b8a3561b28 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 1 Jun 2022 21:28:26 +0800 Subject: [PATCH] ; * src/xterm.c (x_wait_for_cell_change): Don't call ConnectionNumber twice. --- src/xterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index 214419a3360..7234e7c7584 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -14912,7 +14912,7 @@ x_wait_for_cell_change (Lisp_Object cell, struct timespec timeout) maxfd = fd; eassert (fd < FD_SETSIZE); - FD_SET (XConnectionNumber (dpyinfo->display), &fds); + FD_SET (fd, &fds); } /* Prevent events from being lost (from GTK's point of view) by -- 2.39.2