]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix XI 2.0 build
authorPo Lu <luangruo@yahoo.com>
Wed, 16 Mar 2022 07:51:02 +0000 (15:51 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 16 Mar 2022 07:51:02 +0000 (15:51 +0800)
* src/xterm.c (handle_one_xevent): Move declaration of dummy out
of HAVE_XINPUT2_1.

src/xterm.c

index a3d20a9d226cd831083fe4b01bee0f9ef09e22fb..d01d3e7cce3bac2effd36888e671da96f3b69ba9 100644 (file)
@@ -12593,6 +12593,8 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                goto XI_OTHER;
 #endif
 
+             Window dummy;
+
 #ifdef HAVE_XINPUT2_1
 #ifdef HAVE_XWIDGETS
              struct xwidget_view *xv = xwidget_view_from_window (xev->event);
@@ -12603,7 +12605,6 @@ handle_one_xevent (struct x_display_info *dpyinfo,
              double total_y = 0.0;
 
              int real_x, real_y;
-             Window dummy;
 
              for (int i = 0; i < states->mask_len * 8; i++)
                {