Author: Jamie Beardslee <email@example.com>
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.
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."
- (select-window exwm-fullscreen--old-window))
+ (when (window-live-p exwm-fullscreen--old-window)
+ (select-window exwm-fullscreen--old-window)))
(setq exwm-fullscreen--old-window (selected-window))