aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan D2010-11-07 12:25:55 +0100
committerJan D2010-11-07 12:25:55 +0100
commit66b167670d669ad8f98153351cea588c1000cb6a (patch)
tree779878d823e2b33f9044ecdbd68786ad05a002f2 /src
parent27f92be77d42b698116445bfe6dbd18ba6546ef4 (diff)
downloademacs-66b167670d669ad8f98153351cea588c1000cb6a.tar.gz
emacs-66b167670d669ad8f98153351cea588c1000cb6a.zip
* src/xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/xfns.c20
2 files changed, 5 insertions, 17 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 92675fce0cf..5a0d859ac27 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12010-11-07 Jan Djärv <jan.h.d@swipnet.se> 12010-11-07 Jan Djärv <jan.h.d@swipnet.se>
2 2
3 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
4
3 * xdisp.c (note_mode_line_or_margin_highlight): Initialize 5 * xdisp.c (note_mode_line_or_margin_highlight): Initialize
4 Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also. 6 Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
5 7
diff --git a/src/xfns.c b/src/xfns.c
index 8ef9c92523e..576ab3f0ef1 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3078,25 +3078,11 @@ If FRAME is nil, use the selected frame. */)
3078static void 3078static void
3079set_machine_and_pid_properties (struct frame *f) 3079set_machine_and_pid_properties (struct frame *f)
3080{ 3080{
3081 /* See the above comment "Note: Encoding strategy". */
3082 XTextProperty text;
3083 int bytes, stringp;
3084 int do_free_text_value = 0;
3085 long pid = (long) getpid (); 3081 long pid = (long) getpid ();
3086 3082
3087 text.value = x_encode_text (Vsystem_name, 3083 /* This will set WM_CLIENT_MACHINE and WM_LOCALE_NAME. */
3088 Qcompound_text, 0, &bytes, &stringp, 3084 XSetWMProperties (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), NULL, NULL,
3089 &do_free_text_value); 3085 NULL, 0, NULL, NULL, NULL);
3090 text.encoding = (stringp ? XA_STRING
3091 : FRAME_X_DISPLAY_INFO (f)->Xatom_COMPOUND_TEXT);
3092 text.format = 8;
3093 text.nitems = bytes;
3094 XSetWMClientMachine (FRAME_X_DISPLAY (f),
3095 FRAME_OUTER_WINDOW (f),
3096 &text);
3097 if (do_free_text_value)
3098 xfree (text.value);
3099
3100 XChangeProperty (FRAME_X_DISPLAY (f), 3086 XChangeProperty (FRAME_X_DISPLAY (f),
3101 FRAME_OUTER_WINDOW (f), 3087 FRAME_OUTER_WINDOW (f),
3102 XInternAtom (FRAME_X_DISPLAY (f), 3088 XInternAtom (FRAME_X_DISPLAY (f),