mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-14 23:22:31 +02:00
modules: Set tooltip on button
Mouse-over tooltips set on the label only appear once the mouse hovers over exactly the label. Other apps (e.g. firefox) show the tooltip once the pointer hovers the button. Not solely its label. With this commit we get the same behaviour.
This commit is contained in:
@ -25,9 +25,9 @@ auto waybar::modules::Clock::update() -> void {
|
||||
if (config_["tooltip-format"].isString()) {
|
||||
auto tooltip_format = config_["tooltip-format"].asString();
|
||||
auto tooltip_text = fmt::format(tooltip_format, localtime);
|
||||
label_->set_tooltip_text(tooltip_text);
|
||||
button_.set_tooltip_text(tooltip_text);
|
||||
} else {
|
||||
label_->set_tooltip_text(text);
|
||||
button_.set_tooltip_text(text);
|
||||
}
|
||||
}
|
||||
// Call parent update
|
||||
|
Reference in New Issue
Block a user