[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master f29fd102d7: Add missing details to filter event on XI2
From: |
Po Lu |
Subject: |
master f29fd102d7: Add missing details to filter event on XI2 |
Date: |
Sun, 10 Apr 2022 01:56:17 -0400 (EDT) |
branch: master
commit f29fd102d7531619a98acbf0f3e012fb0f6b233f
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Add missing details to filter event on XI2
* src/xterm.c (handle_one_xevent): Pass coordinates when
translating XI2 key events to core key events.
---
src/xterm.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/xterm.c b/src/xterm.c
index 34b7c026be..9de46aba10 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -17279,6 +17279,11 @@ handle_one_xevent (struct x_display_info *dpyinfo,
xkey.state = ((xev->mods.effective & ~(1 << 13 | 1 << 14))
| (xev->group.effective << 13));
+ xkey.x = lrint (xev->event_x);
+ xkey.y = lrint (xev->event_y);
+ xkey.x_root = lrint (xev->root_x);
+ xkey.y_root = lrint (xev->root_y);
+
/* Some input methods react differently depending on the
buttons that are pressed. */
if (xev->buttons.mask_len)
@@ -17672,6 +17677,10 @@ handle_one_xevent (struct x_display_info *dpyinfo,
xkey.time = xev->time;
xkey.state = ((xev->mods.effective & ~(1 << 13 | 1 << 14))
| (xev->group.effective << 13));
+ xkey.x = lrint (xev->event_x);
+ xkey.y = lrint (xev->event_y);
+ xkey.x_root = lrint (xev->root_x);
+ xkey.y_root = lrint (xev->root_y);
/* Some input methods react differently depending on the
buttons that are pressed. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master f29fd102d7: Add missing details to filter event on XI2,
Po Lu <=