mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-31 14:43:40 -05:00
Fix switch-window hooks when switching with the mouse
And moved it to ui/nav-flash, which is what this code was introduced to fix in the first place!
This commit is contained in:
@@ -309,7 +309,6 @@ with `doom//reload-theme').")
|
||||
(run-hook-with-args 'doom-after-switch-frame-hook))))
|
||||
(defun doom*switch-window-hooks (orig-fn window &optional norecord)
|
||||
(if (or (eq window (selected-window))
|
||||
(memq this-command '(mouse-set-point evil-mouse-drag-region))
|
||||
(window-minibuffer-p)
|
||||
(window-minibuffer-p window))
|
||||
(funcall orig-fn window norecord)
|
||||
|
Reference in New Issue
Block a user