aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/xterm.c29
1 files changed, 20 insertions, 9 deletions
diff --git a/src/xterm.c b/src/xterm.c
index f5ce42fc270..3f693004172 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -12035,17 +12035,13 @@ handle_one_xevent (struct x_display_info *dpyinfo,
12035 struct xwidget_view *xvw; 12035 struct xwidget_view *xvw;
12036#endif 12036#endif
12037 12037
12038#ifdef HAVE_XINPUT2_1 12038#ifdef USE_MOTIF
12039 /* Ignore emulated scroll events when XI2 native 12039#ifdef USE_TOOLKIT_SCROLL_BARS
12040 scroll events are present. */ 12040 struct scroll_bar *bar
12041 if (xev->flags & XIPointerEmulated) 12041 = x_window_to_scroll_bar (dpyinfo->display,
12042 { 12042 xev->event, 2);
12043 *finish = X_EVENT_DROP;
12044 goto XI_OTHER;
12045 }
12046#endif 12043#endif
12047 12044
12048#ifdef USE_MOTIF
12049 use_copy = true; 12045 use_copy = true;
12050 copy.xbutton.type = (xev->evtype == XI_ButtonPress 12046 copy.xbutton.type = (xev->evtype == XI_ButtonPress
12051 ? ButtonPress : ButtonRelease); 12047 ? ButtonPress : ButtonRelease);
@@ -12075,6 +12071,21 @@ handle_one_xevent (struct x_display_info *dpyinfo,
12075 } 12071 }
12076#endif 12072#endif
12077 12073
12074#ifdef HAVE_XINPUT2_1
12075 /* Ignore emulated scroll events when XI2 native
12076 scroll events are present. */
12077 if (xev->flags & XIPointerEmulated)
12078 {
12079#if !defined USE_MOTIF || !defined USE_TOOLKIT_SCROLL_BARS
12080 *finish = X_EVENT_DROP;
12081#else
12082 if (bar)
12083 *finish = X_EVENT_DROP;
12084#endif
12085 goto XI_OTHER;
12086 }
12087#endif
12088
12078 if (xev->evtype == XI_ButtonPress) 12089 if (xev->evtype == XI_ButtonPress)
12079 x_display_set_last_user_time (dpyinfo, xev->time); 12090 x_display_set_last_user_time (dpyinfo, xev->time);
12080 12091