[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 46e6b8a1e4: Prevent crash handling keyboard input from non-frame
From: |
Po Lu |
Subject: |
master 46e6b8a1e4: Prevent crash handling keyboard input from non-frame windows |
Date: |
Fri, 10 Jun 2022 21:19:48 -0400 (EDT) |
branch: master
commit 46e6b8a1e42849ad55813c9ee387ad8bc95697fb
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Prevent crash handling keyboard input from non-frame windows
* src/xterm.c (handle_one_xevent): Use `dpyinfo' to access xkb
desc. (bug#55890)
---
src/xterm.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/xterm.c b/src/xterm.c
index ad925755b5..74716dfe40 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -16858,9 +16858,9 @@ handle_one_xevent (struct x_display_info *dpyinfo,
memset (&compose_status, 0, sizeof (compose_status));
#ifdef HAVE_XKB
- if (FRAME_DISPLAY_INFO (f)->xkb_desc)
+ if (dpyinfo->xkb_desc)
{
- XkbDescRec *rec = FRAME_DISPLAY_INFO (f)->xkb_desc;
+ XkbDescRec *rec = dpyinfo->xkb_desc;
if (rec->map->modmap && rec->map->modmap[xkey.keycode])
goto done_keysym;
@@ -20109,9 +20109,9 @@ handle_one_xevent (struct x_display_info *dpyinfo,
state |= x_emacs_to_x_modifiers (dpyinfo,
extra_keyboard_modifiers);
#ifdef HAVE_XKB
- if (FRAME_DISPLAY_INFO (f)->xkb_desc)
+ if (dpyinfo->xkb_desc)
{
- XkbDescRec *rec = FRAME_DISPLAY_INFO (f)->xkb_desc;
+ XkbDescRec *rec = dpyinfo->xkb_desc;
if (rec->map->modmap && rec->map->modmap[xev->detail])
goto xi_done_keysym;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 46e6b8a1e4: Prevent crash handling keyboard input from non-frame windows,
Po Lu <=