-
Notifications
You must be signed in to change notification settings - Fork 598
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
titlebar tooltips cover buttons in maximized windows when placed on the top right #2125
Comments
@Elv13 Ideas? Since tooltips delegate placement to |
Maybe we could use the |
I agree with @ff2000 here that his (1) seems better than (2), so I'd prefer better placement, but I guess we can also do both. |
The |
Can we make Let Edit: Actually, the argument to Edit: Edit: Okay, that code does work thanks to $MAGIC done later... |
I've fixed this in the following way:
function titlebar.widget.button(c, name, selector, action)
local ret = imagebox()
if titlebar.enable_tooltip then
ret._private.tooltip = atooltip({ objects = {ret}, delay_show = 1 })
ret._private.tooltip:set_text(name)
+ ret._private.tooltip:set_mode('outside')
end |
@Perlovka somehow I missed your reply. |
@Elv13 What do you think about "outside" mode for tooltips on titlebars? |
Output of
awesome --version
:awesome v4.2 (Human after all)
• Compiled against Lua 5.3.3 (running with Lua 5.3)
• D-Bus support: ✔
• execinfo support: ✔
• xcb-randr version: 1.5
• LGI version: 0.9.0
How to reproduce the issue:
Actual result:
tooltip comes up rather quickly and places itself over the button. This is quite sure due to the tooltip getting placed above and right of the cursor, but as there isn't enough space it gets moved down/left until it is fully visible.
That tooltip will eat the click leaving the user (me) quite irritated. Two clicks are needed to close the window.
Expected result:
Let me trigger the action with just one click!
Solution could be to either (1) change the way the tooltip is positioned in such constrained cases (e.g. swap top/bottom and left/right) or (2) just to pass the click through the tooltip to the underlying widget. I would prefer (1): It can be irritating if the button gets covered, even when it's a describing tooltip.
The text was updated successfully, but these errors were encountered: