Good day! I've described this bug here: https://github.com/hlissner/doom-emacs/issues/5469 During investigation I've discovered the exact commit which brokes toolbar on this scenario. Let me share git bisect log: git bisect start # good: [cfcf42ff879f766ffe5812fb0cd12f35803c1bfb] Ensure that gud commands for non-GDB debuggers are handled by repeat-mode git bisect good cfcf42ff879f766ffe5812fb0cd12f35803c1bfb # bad: [192a384408cc846d8e66e91a67cd9ad4e7f0be24] Revert usage of format-prompt in python.el git bisect bad 192a384408cc846d8e66e91a67cd9ad4e7f0be24 # bad: [beb54dc1b2b00cb4541b82acf6ead8a8075c3011] Improve documentation of 'file-preserve-symlinks-on-save' git bisect bad beb54dc1b2b00cb4541b82acf6ead8a8075c3011 # bad: [c56e395edf5babdbcc65fa7bdb9fb462c674f156] Let image-dired-mouse-toggle-mark act on active region git bisect bad c56e395edf5babdbcc65fa7bdb9fb462c674f156 # bad: [0ec67a295632f3c4ac92e0b6a0070f67dedac4eb] ; so-long-tests.el: Suppress expected warnings git bisect bad 0ec67a295632f3c4ac92e0b6a0070f67dedac4eb # bad: [12c5ca4d825496b3c7304b75ab82a6fabdc2023d] Fix some macOS problems git bisect bad 12c5ca4d825496b3c7304b75ab82a6fabdc2023d # good: [0bd1346318fe9ef4eba91905172d30a030d7da18] Fix issue with mml-preview from outside Gnus git bisect good 0bd1346318fe9ef4eba91905172d30a030d7da18 # good: [55a9c17cef78b1fd3da42bcc2ab55d4acbaa24eb] Change Tramp version to "2.5.2-pre" git bisect good 55a9c17cef78b1fd3da42bcc2ab55d4acbaa24eb # good: [a4d2c88cdee90a3e4863a62c4ff69896d0c1a347] Simplify macOS drawing code git bisect good a4d2c88cdee90a3e4863a62c4ff69896d0c1a347 # bad: [1ba02d85a964e1b2c6a9735cd3decdc524e06dc1] Fix macOS live resize drawing git bisect bad 1ba02d85a964e1b2c6a9735cd3decdc524e06dc1 # bad: [960f3fc589d8d021e1ed1a505e660929e4c13d0a] Change NS port resize detection git bisect bad 960f3fc589d8d021e1ed1a505e660929e4c13d0a # good: [1535c81f77153dd61426246be2e8afd33fa6909a] Tidy up NS port OS window handling git bisect good 1535c81f77153dd61426246be2e8afd33fa6909a # first bad commit: [960f3fc589d8d021e1ed1a505e660929e4c13d0a] Change NS port resize detection In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin20.6.0, NS appkit-2022.60 Version 11.5.2 (Build 20G95)) of 2021-09-12 built on MacBook-Pro.sa31-cbt.catap.net Repository revision: 1535c81f77153dd61426246be2e8afd33fa6909a Repository branch: HEAD Windowing system distributor 'Apple', version 10.3.2022 System Description: macOS 11.5.2 Configured using: 'configure --prefix=/opt/local --disable-silent-rules --without-dbus --without-gconf --without-libotf --without-m17n-flt --with-gmp --with-gnutls --with-json --with-xml2 --with-modules --infodir /opt/local/share/info/emacs --with-ns --with-lcms2 --without-harfbuzz --without-imagemagick --without-xaw3d --with-native-compilation --with-rsvg 'CFLAGS=-pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch x86_64' 'CPPFLAGS=-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-no_pie -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch x86_64'' Configured features: ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS XIM ZLIB Important settings: value of $LC_ALL: en_US.UTF-8 value of $LC_CTYPE: UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: DOOM v3.0.0-alpha Minor modes in effect: flyspell-lazy-mode: t gcmh-mode: t global-hl-line-mode: t hl-line-mode: t winner-mode: t show-paren-mode: t smartparens-global-mode: t ws-butler-global-mode: t global-emojify-mode: t emojify-mode: t global-undo-fu-session-mode: t undo-fu-session-mode: t undo-fu-mode: t global-flycheck-mode: t which-key-mode: t better-jumper-mode: t better-jumper-local-mode: t global-company-mode: t company-mode: t ivy-rich-project-root-cache-mode: t ivy-rich-mode: t ivy-mode: t volatile-highlights-mode: t global-git-commit-mode: t shell-dirtrack-mode: t yas-global-mode: t yas-minor-mode: t savehist-mode: t solaire-global-mode: t solaire-mode: t doom-modeline-mode: t persp-mode: t delete-selection-mode: t projectile-mode: t ns-auto-titlebar-mode: t +popup-mode: t general-override-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t window-divider-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/use-package/use-package-diminish hides /Users/catap/src/doom-emacs/.local/straight/repos/use-package/use-package-diminish /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/use-package/use-package hides /Users/catap/src/doom-emacs/.local/straight/repos/use-package/use-package /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/use-package/use-package-lint hides /Users/catap/src/doom-emacs/.local/straight/repos/use-package/use-package-lint /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/use-package/use-package-delight hides /Users/catap/src/doom-emacs/.local/straight/repos/use-package/use-package-delight /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/use-package/use-package-jump hides /Users/catap/src/doom-emacs/.local/straight/repos/use-package/use-package-jump /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/use-package/use-package-core hides /Users/catap/src/doom-emacs/.local/straight/repos/use-package/use-package-core /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/use-package/use-package-ensure hides /Users/catap/src/doom-emacs/.local/straight/repos/use-package/use-package-ensure /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/use-package/use-package-bind-key hides /Users/catap/src/doom-emacs/.local/straight/repos/use-package/use-package-bind-key /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/bind-key/bind-key hides /Users/catap/src/doom-emacs/.local/straight/repos/use-package/bind-key /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/straight/straight-x hides /Users/catap/src/doom-emacs/.local/straight/repos/straight.el/straight-x /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/apel/install hides /Users/catap/src/doom-emacs/.local/straight/repos/straight.el/install /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/straight/straight hides /Users/catap/src/doom-emacs/.local/straight/repos/straight.el/straight /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/cmake-mode/cmake-mode hides /opt/local/share/emacs/site-lisp/cmake-mode /Users/catap/src/doom-emacs/.local/straight/repos/straight.el/indent hides /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/indent /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/transient/transient hides /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/transient /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/xref/xref hides /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/progmodes/xref /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/project/project hides /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/progmodes/project /Users/catap/src/doom-emacs/.local/straight/build-28.0.50/flim/sasl hides /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/net/sasl Features: (shadow sort disp-table whitespace flycheck-popup-tip popup flyspell-lazy flyspell ispell vi-tilde-fringe display-line-numbers highlight-indent-guides adaptive-wrap gcmh hl-line winner paren smartparens-config smartparens-org smartparens-text smartparens ws-butler emojify apropos tar-mode arc-mode archive-mode ht undo-fu-session undo-fu flycheck-package package-lint finder finder-inf lisp-mnt flycheck mail-extr emacsbug sendmail cursor-sensor amx which-key better-jumper company-capf company etags fileloop generator ivy-xref ivy-avy avy ivy-rich counsel xdg swiper ivy flx ivy-faces ivy-overlay colir color xref project volatile-highlights magit-todos pcre2el rxt re-builder hl-todo async org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs github-review ghub-graphql treepy gsexp ghub url-http url-gw nsm url-auth gnutls deferred a magit-autoloads magit-submodule magit-obsolete magit-popup magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode magit-core magit-autorevert magit-margin magit-transient magit-process magit-mode core-packages package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse url-vars git-commit transient format-spec log-edit message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa epg epg-config gnus-util rmail rmail-loaddefs auth-source password-cache json map time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-git magit-section magit-utils crm with-editor shell pcomplete doom-snippets doom-snippets-lib autorevert filenotify yasnippet elisp-mode savehist recentf tree-widget wid-edit server persistent-soft list-utils pcache eieio-base eieio eieio-core eieio-loaddefs font-utils unicode-fonts dtrt-indent advice doom-themes-ext-treemacs doom-themes-ext-org solaire-mode face-remap doom-one-theme doom-themes doom-themes-base doom-modeline doom-modeline-segments let-alist doom-modeline-env doom-modeline-core shrink-path f s all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons dash persp-mode delsel projectile grep compile text-property-search comint ansi-color ring ibuf-ext ibuffer ibuffer-loaddefs thingatpt smartparens-lua ns-auto-titlebar derived edmacro kmacro core-editor core-projects core-ui easy-mmode comp comp-cstr warnings core-keybinds pp general cl-extra help-mode cl-seq use-package-core core-modules tex-site rx cl core core-lib pcase cl-macs cl-loaddefs cl-lib subr-x chemacs seq byte-opt gv bytecomp byte-compile cconv iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 795703 772735) (symbols 48 57901 56) (strings 32 203824 59149) (string-bytes 1 5610377) (vectors 16 124771) (vector-slots 8 4454343 1257321) (floats 8 986 1890) (intervals 56 1662 501) (buffers 992 11)) -- wbr, Kirill