wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
16.78k stars 751 forks source link

Mouse scroll the hovered pane #798

Closed sclu1034 closed 2 years ago

sclu1034 commented 3 years ago

Is your feature request related to a problem? Please describe. With regular application windows it is possible to scroll any window with the mouse by hovering it, without having to switch keyboard focus. The same is possible with panes in Tmux. However, WezTerm will always send scroll events to whatever pane has keyboard focus, even if I intentionally hover over a different pane.

Describe the solution you'd like Send mouse scroll events to the pane that the mouse cursor is hovering.

wez commented 3 years ago

Take a look at: https://wezfurlong.org/wezterm/config/lua/config/pane_focus_follows_mouse.html

sclu1034 commented 3 years ago

While that option does remove the need for clicking, it does not separate keyboard focus from mouse focus. I don't actually want to change the pane that keyboard events are sent to or the one that is dimmed by inactive_pane_hsb, just the one that mouse events are sent to.

wez commented 2 years ago

This is fixed in the latest nightly!

zhangyoufu commented 2 years ago

Hi, I'm using 20220807-113146-c2fee766 and I cannot scroll hovered inactive panes using mouse.

Is this the expected behavior (controlled by some configuration?) or a regression?

wez commented 2 years ago

@zhangyoufu please file a new issue

zhangyoufu commented 2 years ago

@zhangyoufu please file a new issue

@wez Same as #2373

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.