#include "process.h"
#include "keyboard.h"
+#ifndef HAVE_GTK3
+#define gdk_x11_set_sm_client_id(w) gdk_set_sm_client_id (w)
+#endif
+
/* This is the event used when SAVE_SESSION_EVENT occurs. */
static struct input_event emacs_event;
#ifdef USE_GTK
/* GTK creats a leader window by itself, but we need to tell
it about our client_id. */
- gdk_set_sm_client_id (client_id);
+ gdk_x11_set_sm_client_id (client_id);
#else
create_client_leader_window (dpyinfo, client_id);
#endif