wf-shell icon indicating copy to clipboard operation
wf-shell copied to clipboard

Command-output tooltip execution spam

Open trigg opened this issue 1 year ago • 2 comments

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.

trigg avatar Jul 10 '24 08:07 trigg

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

NamorNiradnug avatar Jul 10 '24 22:07 NamorNiradnug

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

soreau avatar Jul 10 '24 23:07 soreau