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

clim-modeline: redisp fails with error. #274

Open
ethanxxxl opened this issue Jul 7, 2023 · 0 comments
Open

clim-modeline: redisp fails with error. #274

ethanxxxl opened this issue Jul 7, 2023 · 0 comments

Comments

@ethanxxxl
Copy link

When I load clim-mode-line and call redisp, the function fails, saying it tried to call (frame-width NIL). Upon further inspection, it appears that once clim-mode-line starts, stump adds a bunch of superfluous modelines to stumpwm::*mode-lines*. Since these mode-lines have their head slots set to nil, the redisp function can't properly resize the frame windows for them.

I was able to partially fix this by removing the invalid modelines from stumpwm::*mode-lines*:
(setf stumpwm::*mode-lines* (remove-if-not #'stumpwm::mode-line-head stumpwm::*mode-lines*)

I think a better solution would involve controlling how the clim-mode-line is detected by stumpwm. I am not sure how clim-mode-line is detected by stumpwm in the first place, however. It seems that stumpwm somehow automatically detects external mode-lines when they are launched.

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

1 participant