Ensure last entry in keymap popup is displayed#9
Conversation
The downside is there appears to be a blank line at the bottom of the keymap popup. If there is another way to ensure the last line is included in the popup without adding a blank line, that solution would be ideal.
|
Could you describe the problem you're seeing without this? For me, there are no missing lines in the popup. Do you use customized positioning? |
|
Sorry for the delay. Thank you for the feedback! :) Below are some screenshots highlighting the issue this PR attempts to solve. I've also attached some version information at the very end. I've also linked my current configs (see modal.lua in particular), though I intend on trying to reproduce the issue in Xephyr with a reduced awesome config. I hope to have this tested in such a way for this weekend. I hope this helps clarify the weird issue I've encountered. As mentioned above, I'm not entirely certain this is the best way to address the issue. I'm looking forward to better understanding what's going on here. ScreenshotsIn the next two screenshots the very bottom will show a key entry in the first screenshot, which is present in the second screenshot. Here's a screenshot of what happened on my present setup without this commit: Here's the same modal with the git commit applied: Version information |
|
I experimented a bit with your config and noticed, that the problem only occurs, if there is only a single entry after the last separator. Also, the problem seems to be that the whole text is then placed lower inside the wibox. This is also visible in your screenshots, the one with the missing entry has more space above the "Manage Awesome" title. The only other solution I've found is to add at least 2 pixels to the height here. But 2 pixels seems arbitrary and is probably dependent on font/dpi/whatever else, so I wouldn't say that workaround is any better... |


The downside is there appears to be a blank line at the bottom of the keymap
popup. If there is another way to ensure the last line is included in the
popup without adding a blank line, that solution would be ideal. Because of
this nitpick, I marked this PR as a draft.