mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-06 07:31:13 -08:00
Ignore all emulated button events (i.e. those from touchscreens)
* src/xterm.c (handle_one_xevent): Ignore all XIPointerEmulated events if the display supports XI 2.2 or later.
This commit is contained in:
parent
aa1fdb3f6f
commit
2bcd299431
1 changed files with 4 additions and 3 deletions
|
|
@ -10329,9 +10329,10 @@ handle_one_xevent (struct x_display_info *dpyinfo,
|
|||
#ifdef XIPointerEmulated
|
||||
/* Ignore emulated scroll events when XI2 native
|
||||
scroll events are present. */
|
||||
if (dpyinfo->xi2_version >= 1
|
||||
&& xev->detail >= 4
|
||||
&& xev->detail <= 8
|
||||
if (((dpyinfo->xi2_version == 1
|
||||
&& xev->detail >= 4
|
||||
&& xev->detail <= 8)
|
||||
|| (dpyinfo->xi2_version >= 2))
|
||||
&& xev->flags & XIPointerEmulated)
|
||||
{
|
||||
*finish = X_EVENT_DROP;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue