My Emacs configuration
git clone https://git.jamzattack.xyz/emacs.d
Log | Files | Refs | LICENSE

commit 28d229a9478bf2ec1160dfe7ed7cde3251f7f487
parent e08e92cc51daccc51843fff5a757e1b0b00d021a
Author: Jamie Beardslee <jdb@jamzattack.xyz>
Date:   Mon,  3 Aug 2020 22:43:20 +1200

[custom-exwm-config] Fix minor bug in `exwm-fullscreen-or-reset'

Previously, if a window was made fullscreen by means other than
`exwm-fullscreen-or-reset' and `exwm-fullscreen--old-window' had been
deleted, the following error would occur:
: Wrong type argument: window-live-p, #<window 588>

This has been fixed by ensuring that the window is still available
before trying to select it.

Mlisp/exwm/custom-exwm-config.el | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/exwm/custom-exwm-config.el b/lisp/exwm/custom-exwm-config.el @@ -66,7 +66,8 @@ window or the first exwm window found." (progn (exwm-input-grab-keyboard id) (exwm-layout-unset-fullscreen id) - (select-window exwm-fullscreen--old-window)) + (when (window-live-p exwm-fullscreen--old-window) + (select-window exwm-fullscreen--old-window))) (progn (setq exwm-fullscreen--old-window (selected-window)) (select-window exwm-window)