emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/exwm 7032ee7 48/64: Re-enable complete refresh of keybo


From: Chris Feng
Subject: [elpa] externals/exwm 7032ee7 48/64: Re-enable complete refresh of keyboard mapping
Date: Thu, 17 Sep 2015 23:18:07 +0000

branch: externals/exwm
commit 7032ee70030273e9a32d3aa444b1247406d15552
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>

    Re-enable complete refresh of keyboard mapping
    
    Since the performance of `xcb:keysyms:update-keyboard-mapping` is no longer 
an
    problem, we allow every possible refresh of keyboard mapping again.
---
 exwm-input.el |   17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/exwm-input.el b/exwm-input.el
index ede635c..eb53b41 100644
--- a/exwm-input.el
+++ b/exwm-input.el
@@ -149,20 +149,13 @@ It's updated in several occasions, and only used by 
`exwm-input--set-focus'.")
        ((= request xcb:Mapping:Modifier)
         ;; Modifier keys changed
         (exwm--log "Update modifier mapping")
-        (xcb:keysyms:update-modifier-mapping exwm--connection)
-        )
+        (xcb:keysyms:update-modifier-mapping exwm--connection))
        ((= request xcb:Mapping:Keyboard)
         ;; Only update changed keys
-        (with-slots (min-keycode max-keycode)
-            (xcb:get-setup exwm--connection)
-          ;; Since this operation is quite time-consuming, a complete refresh
-          ;; is forbidden as it's unlikely to bring any useful information
-          (unless (and (= min-keycode first-keycode)
-                       (= max-keycode (+ first-keycode count -1)))
-            (exwm--log "Update keyboard mapping: %d ~ %d"
-                       first-keycode (+ first-keycode count))
-            (xcb:keysyms:update-keyboard-mapping exwm--connection
-                                                 first-keycode count))))))))
+        (exwm--log "Update keyboard mapping: %d ~ %d"
+                   first-keycode (+ first-keycode count))
+        (xcb:keysyms:update-keyboard-mapping exwm--connection
+                                             first-keycode count))))))
 
 (defun exwm-input--on-ButtonPress (data synthetic)
   "Handle ButtonPress event."



reply via email to

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