[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master f90176b: Use only effective modifiers when handling XI2 button ev
From: |
Po Lu |
Subject: |
master f90176b: Use only effective modifiers when handling XI2 button events |
Date: |
Tue, 23 Nov 2021 20:10:27 -0500 (EST) |
branch: master
commit f90176b1ca8440adcbcfa61ce0da35d967b9cd6f
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Use only effective modifiers when handling XI2 button events
* src/xterm.c (handle_one_xevent): Use mods.effective when
constructing button events.
---
src/xterm.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/xterm.c b/src/xterm.c
index dfbbff2..7e0d587 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -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));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master f90176b: Use only effective modifiers when handling XI2 button events,
Po Lu <=