diff src/xselect.c @ 111530:d61a54d15a90

Fix Atoms and Lisp_Object mixup and related bugs. * src/xselect.c (x_send_client_event): Move CHECK_STRING ... (Fx_send_client_event): to here. * src/xterm.c (set_wm_state): Don't put Atom in cons, call make_fixnum_or_float on them first. (x_term_init): Initialize Xatom_net_supporting_wm_check and Xatom_net_supported correctly.
author Jan D <jan.h.d@swipnet.se>
date Sat, 13 Nov 2010 19:59:28 +0100
parents 4f757d8e8ed7
children ca297dbe1d56
line wrap: on
line diff
--- a/src/xselect.c	Sat Nov 13 13:49:22 2010 -0500
+++ b/src/xselect.c	Sat Nov 13 19:59:28 2010 +0100
@@ -2528,8 +2528,11 @@
 {
   struct x_display_info *dpyinfo = check_x_display_info (display);
 
+  CHECK_STRING (message_type);
   x_send_client_event(display, dest, from,
-                      XInternAtom (dpyinfo->display, SDATA (message_type), False),
+                      XInternAtom (dpyinfo->display,
+                                   SDATA (message_type),
+                                   False),
                       format, values);
 
   return Qnil;
@@ -2546,7 +2549,6 @@
   struct frame *f = check_x_frame (from);
   int to_root;
 
-  CHECK_STRING (message_type);
   CHECK_NUMBER (format);
   CHECK_CONS (values);