[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 1041169746: Fix session management detection of the first X displ
From: |
Po Lu |
Subject: |
master 1041169746: Fix session management detection of the first X display |
Date: |
Thu, 19 May 2022 21:13:27 -0400 (EDT) |
branch: master
commit 10411697468ebfcae93ffb48ca773d5321c8a5ec
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix session management detection of the first X display
* src/xterm.c (x_term_init): Check that there is no other
display in the chain instead of testing the terminal ID.
---
src/xterm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xterm.c b/src/xterm.c
index db3f41e688..a8745894eb 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -24719,7 +24719,7 @@ x_term_init (Lisp_Object display_name, char
*xrm_option, char *resource_name)
/* Only do this for the very first display in the Emacs session.
Ignore X session management when Emacs was first started on a
tty or started as a daemon. */
- if (terminal->id == 1 && ! IS_DAEMON)
+ if (!dpyinfo->next && ! IS_DAEMON)
x_session_initialize (dpyinfo);
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 1041169746: Fix session management detection of the first X display,
Po Lu <=