aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul W. Rankin <pwr@skeletons.cc>2020-10-16 13:30:54 +1000
committerPaul W. Rankin <pwr@skeletons.cc>2020-10-16 13:30:54 +1000
commit8a346e2087c3404a6f43b4dd158e2b6e5342227e (patch)
tree110a13baab6375b4fb95df3d91fc387315484a81
parent8e7d2b311187950e1603bb75b51992ba9fe3ee87 (diff)
downloadbinder-8a346e2087c3404a6f43b4dd158e2b6e5342227e.zip
Quit & kill binder side windows on quit on all frames
-rw-r--r--binder.el12
1 files changed, 4 insertions, 8 deletions
diff --git a/binder.el b/binder.el
index 482d904..bc2ad6e 100644
--- a/binder.el
+++ b/binder.el
@@ -745,15 +745,11 @@ one, otherwise insert at end."
(add-hook 'window-configuration-change-hook #'binder-highlight-in-sidebar))
(binder-save 'prompt)
(remove-hook 'window-configuration-change-hook #'binder-highlight-in-sidebar)
- ;;
- ;; FIXME: This does not kill project & notes windows when focus is on
- ;; another frame.
- ;;
- (when (window-live-p (get-buffer-window binder-sidebar-buffer))
- (with-selected-window (get-buffer-window binder-sidebar-buffer)
+ (when (window-live-p (get-buffer-window binder-sidebar-buffer t))
+ (with-selected-window (get-buffer-window binder-sidebar-buffer t)
(quit-window t)))
- (when (window-live-p (get-buffer-window binder-notes-buffer))
- (with-selected-window (get-buffer-window binder-notes-buffer)
+ (when (window-live-p (get-buffer-window binder-notes-buffer t))
+ (with-selected-window (get-buffer-window binder-notes-buffer t)
(quit-window t)))
(setq binder--cache nil)))