-
Notifications
You must be signed in to change notification settings - Fork 87
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
ActiveWindowName won't respect max_chars #286
Comments
Hey @greweln, sorry about the delay on this one! I think the fix might be embarrassingly simple... https://github.com/sminez/penrose/blob/develop/crates/penrose_ui/src/bar/widgets/simple.rs#L129 Pretty sure that all that is required is to change that line from self.inner.set_text(x.window_title(*id)?) to self.set_text(x.window_title(*id)?) I've just pushed that change on a branch ( |
@sminez |
The fact that those two signatures don't match makes me all kinds of sad 😞 And yeah, that should either be a reference or the signature should be updated so it matches Text::set_text |
fixed in #287 |
Describe the bug
The widget displays full length text ignoring the max_chars value.
...
To Reproduce
On the same workspace, st + firefox (with some tabs).
While keeping the focus on the Firefox window switch tabs.It will display the full URL ignoring the max_chars value. If the URL is long enough will even "push " the next widgets out of the screen.
Switching the focus between st/firefox(while having the tab with the long URL displayed) works as expected.
Expected behavior
...
Screenshots
The text was updated successfully, but these errors were encountered: