]> git.eshelyaron.com Git - emacs.git/commitdiff
Use only effective modifiers when handling XI2 button events
authorPo Lu <luangruo@yahoo.com>
Wed, 24 Nov 2021 01:09:45 +0000 (09:09 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 24 Nov 2021 01:09:45 +0000 (09:09 +0800)
* src/xterm.c (handle_one_xevent): Use mods.effective when
constructing button events.

src/xterm.c

index dfbbff230240e9f192d70e3925ebac74e68ddc96..7e0d58745e210da718dcb478236d5f0898cca338 100644 (file)
@@ -10149,10 +10149,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
              bv.x = lrint (xev->event_x);
              bv.y = lrint (xev->event_y);
              bv.window = xev->event;
-             bv.state = xev->mods.base
-               | xev->mods.effective
-               | xev->mods.latched
-               | xev->mods.locked;
+             bv.state = xev->mods.effective;
              bv.time = xev->time;
 
              memset (&compose_status, 0, sizeof (compose_status));