-
Notifications
You must be signed in to change notification settings - Fork 120
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
Task items disappear when tasklist overflows #10
Comments
Thanks for such detailed report, amazing work. To be honest I can't see the root of problem but just added some tricky code to make By the way, editing theme file you can correct widget sizes for better fit in different screen size. |
Thank you for looking into this so quickly! I tested your fix, seems to work just as fine on my setup. |
Issue
On a smaller screen, the
tasklist
may overflow if many applications are opened in the sametag
. If moretask
widgets are added than the center layout allows in terms of width (i.e. thetasklist
overflows), thetasklist
disappears from the panelwibox
completely (visually). Even if the the amount oftask
items is reduced by closing applications or changing thetag
, it won't reappear. It only reappears again when Awesome is restarted. This can be reproduced infinitely on my setup.Reproduction
rc-colorless
setuptasklist
fills up completely (= there is no free space at the left and right side of thetasklist
)Expected outcome
task
widgets are squished together horizontally (reducing their width), so that all fit in thetasklist
togetherActual outcome
task
widgets (and effectively the wholetasklist
) visually disappear completely from the panel until Awesome is restartedDebugging
After trying to pin down the issue for a few hours, I've reached the conclusion that it the layout trick to center the tasklist widget may be the culprit. From my humble debugging attempts, I can conclude the following:
task
objects in thetasklist
widget is still correctly updatedtag
switch), the amount of task objects added to the layout container is correcttask
widgets themselves still exist after the issue occursexpand
property or the layout entirely, the issue is fixed but thetasklist
is obviously not centered anymoreWhich is why my best guess is that it's an issue with the
wibox.layout.align.horizontal
layout.Potential fix
The only reliable way I managed to find to fix this while still keeping the
tasklist
centered, is to change the layout toflex.horizontal
and wrap thetasklist
into awibox.container.place
, like this:However, the
wibox.container.place
was just added to Awesome v4.2, so it breaks compatibility with v4.0 and v4.1 sadly.Maybe there is some other way to get the
tasklist
centered using containers/layouts from v4.0, but I'm still rather new to the whole framework so I can't come up with anything else currently.Setup
rc-colorless
config of your repoThe text was updated successfully, but these errors were encountered: