branch: externals/fontaine
commit 817a15fe7b5b290bd223ee59bd402892983a280a
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Make fontaine opinionated by inhibiting implied frame resize
---
 fontaine.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/fontaine.el b/fontaine.el
index 86edaf39d1..b267343829 100644
--- a/fontaine.el
+++ b/fontaine.el
@@ -394,9 +394,16 @@ This is then used to restore the last value with the 
function
           ,@(when height (list :height height))
           ,@(when width (list :width width))))))))
 
+(defvar fontaine--frame-inhibit-implied-resize
+  (if (>= emacs-major-version 31)
+      'force
+    t)
+  "Specific non-nil value to inhibit implied frame resize.")
+
 (defun fontaine--set-faces (preset)
   "Set all `fontaine-faces' according to PRESET."
   (let ((custom--inhibit-theme-enable nil)
+        (frame-inhibit-implied-resize fontaine--frame-inhibit-implied-resize)
         (faces (mapcar
                 (lambda (face)
                   (fontaine--get-face-spec preset face))

Reply via email to