branch: elpa/golden-ratio
commit cb9ccd04bb190f2434a41692f1ee05034ce4c9c4
Author: Stuart Hickinbottom <[email protected]>
Commit: Stuart Hickinbottom <[email protected]>
Also resize windows when using mouse
I found that clicking in windows to change focus didn't result in window
resize; this fixes that problem.
---
golden-ratio.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/golden-ratio.el b/golden-ratio.el
index c28b3d4f28..037290c187 100644
--- a/golden-ratio.el
+++ b/golden-ratio.el
@@ -124,6 +124,7 @@ will not cause the window to be resized to the golden
ratio."
(progn
(add-hook 'window-configuration-change-hook 'golden-ratio)
(add-hook 'post-command-hook 'golden-ratio--post-command-hook)
+ (add-hook 'mouse-leave-buffer-hook 'golden-ratio)
(ad-activate 'other-window)
(ad-activate 'pop-to-buffer))
(remove-hook 'window-configuration-change-hook 'golden-ratio)