]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xwidget.c (xwidget_button): Always let button events through.
authorPo Lu <luangruo@yahoo.com>
Fri, 4 Feb 2022 07:17:40 +0000 (15:17 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 4 Feb 2022 07:19:18 +0000 (15:19 +0800)
Filtering out emulated events is done in handle_one_xevent, so
all this accomplishes is to filter out legitimate button events.

src/xwidget.c

index 23031f9c93c204a34c4a4465b803db42e14cc4c6..fc6ba2c6335e63755e8cd720791b818a16b1ba9a 100644 (file)
@@ -1291,12 +1291,7 @@ xwidget_button (struct xwidget_view *view,
 
   if (button < 4 || button > 8)
     xwidget_button_1 (view, down_p, x, y, button, modifier_state, time);
-#ifndef HAVE_XINPUT2
   else
-#else
-  else if (!FRAME_DISPLAY_INFO (view->frame)->supports_xi2
-          || FRAME_DISPLAY_INFO (view->frame)->xi2_version < 1)
-#endif
     {
       if (!down_p)
        {