summaryrefslogtreecommitdiff
path: root/src/xterm.h
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-12-07 19:19:34 +0800
committerPo Lu <luangruo@yahoo.com>2022-12-07 19:19:46 +0800
commit78efe08c0706c2719cb12c7fcd1c8f47386d7b15 (patch)
tree6b986396ed9a664dfc72a5ebf9f77e5d20bb9073 /src/xterm.h
parent82849f9a20bcc043b23c59905044b7f69d8f54a1 (diff)
downloademacs-78efe08c0706c2719cb12c7fcd1c8f47386d7b15.tar.gz
Fix some more problems with running Emacs as untrusted
* etc/PROBLEMS (X security problems): Describe new variable. * src/xfns.c (append_wm_protocols): Don't support ping when it does not work. * src/xterm.c (x_wm_supports_1): Don't support anything when untrusted. (x_term_init): Implement Vx_detect_server_trust. (syms_of_xterm): New variable `x-detect-server-trust'. * src/xterm.h (struct x_display_info): New field `untrusted'.
Diffstat (limited to 'src/xterm.h')
-rw-r--r--src/xterm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h
index fae40930e9b..c3bd647b6f3 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -376,6 +376,10 @@ struct x_display_info
/* Number of frames that are on this display. */
int reference_count;
+ /* True if this client cannot communicate with the window manager
+ because it is untrusted. */
+ bool untrusted;
+
/* The Screen this connection is connected to. */
Screen *screen;