+2014-01-26 Jan Djärv <jan.h.d@swipnet.se>
+
+ * xterm.c (x_focus_changed): Check for non-X terminal-frame (Bug#16540)
+
2014-01-26 Paul Eggert <eggert@cs.ucla.edu>
When decoding, prefer ptrdiff_t to int for buffer positions etc.
/* Don't stop displaying the initial startup message
for a switch-frame event we don't need. */
/* When run as a daemon, Vterminal_frame is always NIL. */
- bufp->arg = (((NILP (Vterminal_frame) || EQ (Fdaemonp (), Qt))
+ bufp->arg = (((NILP (Vterminal_frame)
+ || ! FRAME_X_P (XFRAME (Vterminal_frame))
+ || EQ (Fdaemonp (), Qt))
&& CONSP (Vframe_list)
&& !NILP (XCDR (Vframe_list)))
? Qt : Qnil);