[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/xelb eda5f25: Do not block NewKeyboardNotify events con
From: |
Chris Feng |
Subject: |
[elpa] externals/xelb eda5f25: Do not block NewKeyboardNotify events concerned with SetMap requests |
Date: |
Sun, 1 Apr 2018 11:47:45 -0400 (EDT) |
branch: externals/xelb
commit eda5f25b14959592cb4c75ea52fe7526fe13d91f
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>
Do not block NewKeyboardNotify events concerned with SetMap requests
* xcb-keysyms.el (xcb:keysyms:-on-NewKeyboardNotify):
NewKeyboardNotify events related to SetMap requests should be
processed or keycodes can be out-of-date.
---
xcb-keysyms.el | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/xcb-keysyms.el b/xcb-keysyms.el
index d8edb99..725d80d 100644
--- a/xcb-keysyms.el
+++ b/xcb-keysyms.el
@@ -157,14 +157,7 @@ This method must be called before using any other method
in this module."
(xcb:unmarshal obj1 data)
(with-slots (deviceID oldDeviceID requestMajor requestMinor changed) obj1
(if (= 0 (logand changed xcb:xkb:NKNDetail:DeviceID))
- (when (and (/= 0 (logand changed xcb:xkb:NKNDetail:Keycodes))
- ;; Also, according to the specification this can
- ;; only happen when a GetKbdByName request issued.
- ;; The two checks below avoid false positive caused
- ;; by requests such as SetMap (e.g. XCape).
- (= requestMajor opcode)
- (= requestMinor
- (eieio-oref-default 'xcb:xkb:GetKbdByName '~opcode)))
+ (when (/= 0 (logand changed xcb:xkb:NKNDetail:Keycodes))
;; (xcb:keysyms:-update-keytypes obj deviceID)
(xcb:keysyms:-update-keycodes obj deviceID)
(when (= deviceID device-id)
@@ -400,7 +393,7 @@ Return (0 . 0) when conversion fails."
(pcase (logand group-info #xC0) ;See <XKBstr.h>.
(`xcb:xkb:GroupsWrap:RedirectIntoRange
(setq group (logand #xFF (lsh group-info -4))) ;See <XKBstr.h>.
- ;; Check if i's also out of range.
+ ;; Check if it's also out of range.
(when (>= group group-number)
(setq group 0)))
(`xcb:xkb:GroupsWrap:ClampIntoRange
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/xelb eda5f25: Do not block NewKeyboardNotify events concerned with SetMap requests,
Chris Feng <=