emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master fb386e22e1: Fix a hang on servers that don't support the X Keyboa


From: Po Lu
Subject: master fb386e22e1: Fix a hang on servers that don't support the X Keyboard Extension
Date: Wed, 29 Dec 2021 06:00:53 -0500 (EST)

branch: master
commit fb386e22e129f77bbb2d9faa757cf5bc4f5d90e1
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix a hang on servers that don't support the X Keyboard Extension
    
    * src/xfns.c (Fx_backspace_delete_keys_p): Don't block input
    before checking for Xkb.
---
 src/xfns.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xfns.c b/src/xfns.c
index ae01bb0405..7c4e694320 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -7749,11 +7749,11 @@ present and mapped to the usual X keysyms.  */)
   Display *dpy = FRAME_X_DISPLAY (f);
   Lisp_Object have_keys;
 
-  block_input ();
-
   if (!FRAME_DISPLAY_INFO (f)->supports_xkb)
     return Qlambda;
 
+  block_input ();
+
   /* In this code we check that the keyboard has physical keys with names
      that start with BKSP (Backspace) and DELE (Delete), and that they
      generate keysym XK_BackSpace and XK_Delete respectively.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]