Mouse click issues with tmux since WindTerm 2.7 (especially in weechat)
Description:
Since upgrading to WindTerm 2.7, I have been experiencing random and inconsistent mouse click behavior when using tmux. Mouse support is enabled in tmux, and this issue did not exist in previous versions of WindTerm (2.6 and earlier worked flawlessly).
The issue becomes significantly worse and practically unusable when using weechat inside tmux — clicks do not register properly, and sometimes mouse events seem to get stuck or misinterpreted.
This is not reproducible outside of tmux, and not reproducible in tmux using other terminals
Steps to Reproduce:
Launch WindTerm 2.7 (Windows version)
- Start a tmux session (Linux or FreeBSD, same issues)
- Launch weechat within tmux
- Attempt to use the mouse for clicking
Expected behavior:
Mouse click should behave normally as in previous versions and other terminal emulators.
Actual behavior:
Mouse clicks sometimes register, sometimes don’t
Severe issues inside weechat (sometimes very fast clicks seems to work)
Environment:
- WindTerm Version: 2.7 (official release)
- OS: Windows 11 23H2
- Shell: zsh / bash (tested both)
- Tmux Version: 3.5 (FreeBSD 14.2) Mouse mode in tmux: set -g mouse on
- Weechat Version: 4.6.3 (FreeBSD 14.2)
Additional Notes:
Downgrading to WindTerm 2.6 immediately resolves the issue.
This seems related to how WindTerm 2.7 handles terminal mouse events within tmux.
Please let me know if I can provide any logs, debug output, or run a specific build to help track this down. This issue is quite blocking for workflows that rely on tmux + mouse navigation.