event.
Fixes: debbugs:12681
+2012-10-21 Jan Djärv <jan.h.d@swipnet.se>
+
+ * xterm.c (x_focus_changed): Check if daemonp when sending focus in
+ event (Bug#12681).
+
2012-10-21 Glenn Morris <rgm@gnu.org>
* lisp.mk (lisp): Add cp51932.el and eucjp-ms.el.
/* Don't stop displaying the initial startup message
for a switch-frame event we don't need. */
- if (NILP (Vterminal_frame)
+ /* When run as a deamon, Vterminal_frame is always NIL. */
+ if ((NILP (Vterminal_frame) || EQ (Fdaemonp(), Qt))
&& CONSP (Vframe_list)
&& !NILP (XCDR (Vframe_list)))
{