Restore keyboard grabbing after exiting fullscreen
Recover the difference between the input mode selected by the user and actual one, which might be transient. This was inadvertently removed in recent changes. * exwm-core.el (exwm--selected-input-mode): New variable. * exwm-input.el (exwm-input-grab-keyboard) (exwm-input-release-keyboard): Use it. * exwm-layout.el (exwm-layout-unset-fullscreen): Return to the selected input mode.
This commit is contained in:
parent
dba1ed94c2
commit
eb91ee2c77
3 changed files with 8 additions and 2 deletions
|
@ -756,6 +756,7 @@ button event."
|
|||
(exwm--buffer->id (window-buffer)))))
|
||||
(when id
|
||||
(exwm--log "id=#x%x" id)
|
||||
(setq exwm--selected-input-mode 'line-mode)
|
||||
(exwm-input--grab-keyboard id)
|
||||
(exwm-input--update-mode-line id)))
|
||||
|
||||
|
@ -766,6 +767,7 @@ button event."
|
|||
(exwm--buffer->id (window-buffer)))))
|
||||
(when id
|
||||
(exwm--log "id=#x%x" id)
|
||||
(setq exwm--selected-input-mode 'char-mode)
|
||||
(exwm-input--release-keyboard id)
|
||||
(exwm-input--update-mode-line id)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue