emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/golden-ratio cb9ccd04bb 58/95: Also resize windows when us


From: ELPA Syncer
Subject: [nongnu] elpa/golden-ratio cb9ccd04bb 58/95: Also resize windows when using mouse
Date: Thu, 7 Sep 2023 22:02:13 -0400 (EDT)

branch: elpa/golden-ratio
commit cb9ccd04bb190f2434a41692f1ee05034ce4c9c4
Author: Stuart Hickinbottom <stuart@hickinbottom.com>
Commit: Stuart Hickinbottom <stuart@hickinbottom.com>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]