[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/exwm c0931b5 4/8: Merge branch 'medranocalvo/input-mode
From: |
Chris Feng |
Subject: |
[elpa] externals/exwm c0931b5 4/8: Merge branch 'medranocalvo/input-mode-change-hook' into externals/exwm |
Date: |
Sun, 10 May 2020 09:38:26 -0400 (EDT) |
branch: externals/exwm
commit c0931b5c6604d8816bcee1e4dc2c13a262cb93eb
Merge: 21a7341 ce2625d
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>
Merge branch 'medranocalvo/input-mode-change-hook' into externals/exwm
---
exwm-input.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/exwm-input.el b/exwm-input.el
index 9ba3502..2d78407 100644
--- a/exwm-input.el
+++ b/exwm-input.el
@@ -145,6 +145,10 @@ This value should always be overwritten.")
(defvar exwm-input--event-hook nil
"Hook to run when EXWM receives an event.")
+(defvar exwm-input-input-mode-change-hook nil
+ "Hook to run when an input mode changes on an `exwm-mode' buffer.
+Current buffer will be the `exwm-mode' buffer when this hook runs.")
+
(defvar exwm-workspace--current)
(declare-function exwm-floating--do-moveresize "exwm-floating.el"
(data _synthetic))
@@ -793,7 +797,8 @@ button event."
(let ((buffer (exwm--id->buffer id)))
(when buffer
(with-current-buffer buffer
- (setq exwm--input-mode 'line-mode))))))
+ (setq exwm--input-mode 'line-mode)
+ (run-hooks 'exwm-input-input-mode-change-hook))))))
(defun exwm-input--release-keyboard (&optional id)
"Ungrab all key events on window ID."
@@ -810,7 +815,8 @@ button event."
(let ((buffer (exwm--id->buffer id)))
(when buffer
(with-current-buffer buffer
- (setq exwm--input-mode 'char-mode))))))
+ (setq exwm--input-mode 'char-mode)
+ (run-hooks 'exwm-input-input-mode-change-hook))))))
;;;###autoload
(defun exwm-input-grab-keyboard (&optional id)
- [elpa] externals/exwm updated (21a7341 -> 624a302), Chris Feng, 2020/05/10
- [elpa] externals/exwm c7c4258 2/8: Prevent jumping back to previous workspace, Chris Feng, 2020/05/10
- [elpa] externals/exwm ce2625d 1/8: Run hook upon input mode change, Chris Feng, 2020/05/10
- [elpa] externals/exwm c0931b5 4/8: Merge branch 'medranocalvo/input-mode-change-hook' into externals/exwm,
Chris Feng <=
- [elpa] externals/exwm ab1d02a 5/8: Merge branch 'medranocalvo/prevent-jump-back-workspace' into externals/exwm, Chris Feng, 2020/05/10
- [elpa] externals/exwm 1d0df91 3/8: ; Upcase menu item, Chris Feng, 2020/05/10
- [elpa] externals/exwm 921b0e3 6/8: Merge branch 'medranocalvo/upcase-menu-item' into externals/exwm, Chris Feng, 2020/05/10
- [elpa] externals/exwm 7f4b9cd 7/8: Make return key work in exwm-xim, Chris Feng, 2020/05/10
- [elpa] externals/exwm 624a302 8/8: Clarify the use of `exwm-config-default', Chris Feng, 2020/05/10