Check buffer mode in exwm-reset
This should prevent users from misoperation.
This commit is contained in:
parent
3fb90b9eaa
commit
1e36a22b3f
2 changed files with 5 additions and 8 deletions
7
exwm.el
7
exwm.el
|
|
@ -195,9 +195,10 @@
|
|||
(defun exwm-reset ()
|
||||
"Reset window to standard state: non-fullscreen, line-mode."
|
||||
(interactive)
|
||||
(with-current-buffer (window-buffer (selected-window))
|
||||
(when exwm--fullscreen (exwm-layout-unset-fullscreen))
|
||||
(exwm-input-grab-keyboard)))
|
||||
(with-current-buffer (window-buffer)
|
||||
(when (and (eq major-mode 'exwm-mode) exwm--fullscreen)
|
||||
(exwm-layout-unset-fullscreen)
|
||||
(exwm-input-grab-keyboard))))
|
||||
|
||||
(defmacro exwm--with-current-id (id &rest body)
|
||||
"Evaluate BODY in the context of the buffer corresponding to window ID."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue