branch: externals/exwm
commit 23557d1e42d362306dc7845912871da11687c915
Author: Steven Allen <[email protected]>
Commit: Steven Allen <[email protected]>
Bury the correct buffer when minimizing
* exwm.el (exwm--on-wm-change-state): Make sure we bury the correct
buffer, even if the current buffer changes.
---
exwm.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/exwm.el b/exwm.el
index 64399ef32b..669e42c36e 100644
--- a/exwm.el
+++ b/exwm.el
@@ -651,10 +651,10 @@ DATA contains unmarshalled PropertyNotify event data."
(call-interactively #'exwm-floating-hide)
;; We can't simply bury the buffer because it may be in an unselected
;; window, or even a different frame/workspace.
- (replace-buffer-in-windows))
- ;; We bury the buffer even if it's floating to ensure it goes to the
- ;; back of the buffer switch list.
- (bury-buffer)))))
+ (replace-buffer-in-windows)))
+ ;; We bury the buffer even if it's floating to ensure it goes to the
+ ;; back of the buffer switch list.
+ (bury-buffer buffer))))
(defun exwm--on-ClientMessage (raw-data _synthetic)
"Handle ClientMessage event.