WayfireWM / wf-shell

A GTK3-based panel for wayfire
https://wayfire.org/
MIT License
137 stars 33 forks source link

Command-output tooltip execution spam #265

Open trigg opened 2 months ago

trigg commented 2 months ago

When a command_output_tooltip_* key is used we get excessive calling of the command on mouseovers.

https://github.com/WayfireWM/wf-shell/blob/3e7576f1a74abf746d3b6c3da914a428bbbd2ca7/src/panel/widgets/command-output.cpp#L131

The signal_query_tooltip callback is called for all mouse movement over the widget.

NamorNiradnug commented 2 months ago

The tooltip's content is updated only once a second though https://github.com/WayfireWM/wf-shell/blob/3e7576f1a74abf746d3b6c3da914a428bbbd2ca7/src/panel/widgets/command-output.cpp#L117-L125

soreau commented 2 months ago

What I'd like to see is, the tooltip updated at $interval while it's open, as the button data is.