selected frame is not an X-Windows frame. */)
(Lisp_Object xwidget, Lisp_Object event, Lisp_Object frame)
{
- struct xwidget *xw;
struct frame *f = NULL;
- int character = -1, keycode = -1;
- int modifiers = 0;
#ifdef USE_GTK
GdkEvent *xg_event;
#endif
CHECK_LIVE_XWIDGET (xwidget);
- xw = XXWIDGET (xwidget);
if (!NILP (frame))
f = decode_window_system_frame (frame);
f = SELECTED_FRAME ();
#ifdef USE_GTK
+ int character = -1, keycode = -1;
+ int modifiers = 0;
+ struct xwidget *xw = XXWIDGET (xwidget);
+
#ifdef HAVE_XINPUT2
/* XI2 GDK devices crash if we try this without an embedder set. */
if (!f)