aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-03-16 15:51:02 +0800
committerPo Lu2022-03-16 15:51:02 +0800
commit1babe5fb2d7575fb15e515fffd3387d60a975553 (patch)
treeb777833bb2fa5bd7c4a930ee8630210adc806a26 /src
parent47dcf72dec63b4b4b9cc3b8444bbbfcb85e31d3e (diff)
downloademacs-1babe5fb2d7575fb15e515fffd3387d60a975553.tar.gz
emacs-1babe5fb2d7575fb15e515fffd3387d60a975553.zip
Fix XI 2.0 build
* src/xterm.c (handle_one_xevent): Move declaration of dummy out of HAVE_XINPUT2_1.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index a3d20a9d226..d01d3e7cce3 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -12593,6 +12593,8 @@ handle_one_xevent (struct x_display_info *dpyinfo,
12593 goto XI_OTHER; 12593 goto XI_OTHER;
12594#endif 12594#endif
12595 12595
12596 Window dummy;
12597
12596#ifdef HAVE_XINPUT2_1 12598#ifdef HAVE_XINPUT2_1
12597#ifdef HAVE_XWIDGETS 12599#ifdef HAVE_XWIDGETS
12598 struct xwidget_view *xv = xwidget_view_from_window (xev->event); 12600 struct xwidget_view *xv = xwidget_view_from_window (xev->event);
@@ -12603,7 +12605,6 @@ handle_one_xevent (struct x_display_info *dpyinfo,
12603 double total_y = 0.0; 12605 double total_y = 0.0;
12604 12606
12605 int real_x, real_y; 12607 int real_x, real_y;
12606 Window dummy;
12607 12608
12608 for (int i = 0; i < states->mask_len * 8; i++) 12609 for (int i = 0; i < states->mask_len * 8; i++)
12609 { 12610 {