Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

centaur-tabs + doom-modeline height faces leads to scrollbar dancing madness #41

Closed
cburroughs opened this issue Aug 6, 2019 · 10 comments

Comments

@cburroughs
Copy link

Approximate steps to reproduce:

  • Use centaur-tabs and doom-modeline
  • Customize the modeline height faces
  • Open multiple elisp files
  • Vertically split into two windows
  • Switch to the right window
  • Type something
  • Switch tabs
  • Switch back to the left window
  • Type Type Type
  • The cursor will disappear and the left scrollbar will start oscillating in a little dance

I think this is close to a minimal config:

;; GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8)

(require 'package)
(setq package-enable-at-startup nil)
(setq package-archives
      '(("gnu" . "http://elpa.gnu.org/packages/")
        ("melpa-stable" . "https://stable.melpa.org/packages/")
        ("melpa" . "https://melpa.org/packages/")))

(package-initialize)

(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))

(eval-when-compile
  (require 'use-package))
(require 'bind-key)

(use-package centaur-tabs
  :ensure t
  :demand
  :bind
  ([(C-S-iso-lefttab)] . centaur-tabs-backward)
  ([(control tab)] . centaur-tabs-forward)
  :config
  (centaur-tabs-mode t))


(use-package doom-modeline
  :ensure t
  :pin melpa-stable
  :hook (after-init . doom-modeline-mode)
  :config
  (set-face-attribute 'mode-line nil :height 105)
  (set-face-attribute 'mode-line-inactive nil :height 105))
@cburroughs
Copy link
Author

@ema2159
Copy link
Owner

ema2159 commented Aug 7, 2019

Man you're winning the centaur-tabs award on submitting the hardest issues jaja. I'll have to check this since it may depend on other things like your distro and windows manager etc.

@Compro-Prasad
Copy link
Contributor

Not able to reproduce this in Emacs 27.0.50. My scroll bar seems to just get smaller as I type continuously. Anyway, I have scroll bars turned off by default.

@cburroughs
Copy link
Author

  • I get the same behavior with GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8) built from 2a82b5542661d181933b11f9c72323ef5da708ef
  • With scrollbars disabled, there is no scrollbar to do a dance, but the cursor will still disappear for a while when doing the above steps.

@ema2159
Copy link
Owner

ema2159 commented Aug 10, 2019

I'm unable to reproduce in my system, and I'm not quite sure if this is fixable (at least through centaur-tabs code). If I'm not wrong, it's a problem with the desktop environment (If I'm not wrong, you're using XFCE4).

@Compro-Prasad
Copy link
Contributor

Compro-Prasad commented Aug 10, 2019

@cburroughs Your reproduction steps seem a bit vague. Can you re-write the steps to the point where the cursor becomes permanently invisible?

@ema2159
Copy link
Owner

ema2159 commented Sep 2, 2019

@cburroughs I'll have to close this issue for now due to inactivity. Please re-open it if you consider it's necessary, although I'm not sure if it is fixable given it's a system specific problem.

@ema2159 ema2159 closed this as completed Sep 2, 2019
@cburroughs
Copy link
Author

Understood.

For what it's worth I'm able to work around the issue now, and suspect it is (was?) some combination of domtronn/all-the-icons.el#106 and seagle0128/doom-modeline#215

@ema2159
Copy link
Owner

ema2159 commented Sep 3, 2019

domtronn/all-the-icons.el#106 this one is a classic haha! It has caused so many problems it's unbelievable

@ema2159
Copy link
Owner

ema2159 commented Sep 3, 2019

Thank's for your feedback and glad you were able to work around it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants