/* On 4.3 these lose if they come after xterm.h. */
/* On HP-UX 8.0 signal.h loses if it comes after config.h. */
/* Putting these at the beginning seems to be standard for other .c files. */
-#include <stdio.h>
#include <signal.h>
#include <config.h>
+#include <stdio.h>
+
/* Need syssignal.h for various externs and definitions that may be required
by some configurations for calls to signal later in this source file. */
#include "syssignal.h"
{
/* This is just so we only give real data once
for a single Emacs process. */
- if (event.xclient.window
- == FRAME_X_WINDOW (selected_frame))
+ if (x_top_window_to_frame (event.xclient.window)
+ == selected_frame)
XSetCommand (x_current_display,
event.xclient.window,
initial_argv, initial_argc);