From 89997198526ecd1f09b4586c3b499e943923d43c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 16 Nov 2020 19:21:26 -0500 Subject: [PATCH] window-resize-pixelwise = nil Causes crashes and freezing in some cases where window are resized too quickly/rapidly. May address #3868 --- core/core-ui.el | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index 603bfc9ef..5e030f9a2 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -281,10 +281,13 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original (setq frame-title-format '("%b – Doom Emacs") icon-title-format frame-title-format) -;; Don't resize windows & frames in steps; it's prohibitive to prevent the user -;; from resizing it to exact dimensions, and looks weird. -(setq window-resize-pixelwise t - frame-resize-pixelwise t) +;; Don't resize the frames in steps; it looks weird, especially in tiling window +;; managers, where it can leave unseemly gaps. +(setq frame-resize-pixelwise t) + +;; But do not resize windows pixelwise, this can cause crashes in some cases +;; where we resize windows too quickly. +(setq window-resize-pixelwise nil) (unless (assq 'menu-bar-lines default-frame-alist) ;; We do this in early-init.el too, but in case the user is on Emacs 26 we do