window-resize-pixelwise = nil

Causes crashes and freezing in some cases where window are resized too
quickly/rapidly.

May address #3868
This commit is contained in:
Henrik Lissner 2020-11-16 19:21:26 -05:00
parent 44a6c9b2c8
commit 8999719852
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -281,10 +281,13 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
(setq frame-title-format '("%b Doom Emacs") (setq frame-title-format '("%b Doom Emacs")
icon-title-format frame-title-format) icon-title-format frame-title-format)
;; Don't resize windows & frames in steps; it's prohibitive to prevent the user ;; Don't resize the frames in steps; it looks weird, especially in tiling window
;; from resizing it to exact dimensions, and looks weird. ;; managers, where it can leave unseemly gaps.
(setq window-resize-pixelwise t (setq frame-resize-pixelwise t)
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) (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 ;; We do this in early-init.el too, but in case the user is on Emacs 26 we do