Avoid compilation warnings
* src/xwidget.c (Fxwidget_perform_lispy_event): Avoid compiler warnings. (Bug#71638)
This commit is contained in:
parent
e6f4370c3b
commit
c75aa8e0f6
1 changed files with 4 additions and 4 deletions
|
@ -489,10 +489,7 @@ On X11, modifier keys will not be processed if FRAME is nil and the
|
|||
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;
|
||||
|
@ -506,7 +503,6 @@ selected frame is not an X-Windows frame. */)
|
|||
#endif
|
||||
|
||||
CHECK_LIVE_XWIDGET (xwidget);
|
||||
xw = XXWIDGET (xwidget);
|
||||
|
||||
if (!NILP (frame))
|
||||
f = decode_window_system_frame (frame);
|
||||
|
@ -514,6 +510,10 @@ selected frame is not an X-Windows 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)
|
||||
|
|
Loading…
Add table
Reference in a new issue