microsoft / microsoft/terminal
Tab drag causes mousedown in tmux
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
### Windows Terminal version
1.13.11432.0
### Windows build number
10.0.22000.0
### Other Software
tmux 3.0a inside WSL2
### Steps to reproduce
- Open a tmux session inside WSL2 (Ubuntu 20.04.3 in my case)
- Drag the current tab downwards so it overlays the screen area (and do it quite fast)
### Expected Behavior
The tmux session should be unaffected by the drag action outside of it.
### Actual Behavior
Onmousedown / drag apparently is triggered and causes the selection to change and scroll mode to start. This only happens if you drag quite fast.
https://user-images.githubusercontent.com/5270359/170699426-7528dbdd-d5cc-4ddd-9ffc-b82d7630a4ac.mp4
The latest preview version 1.14.1452.0 also has this issue and 1.12 had it as well.
Contributor guide
Research direction
Start by reproducing the tab-drag scenario with tmux 3.0a inside WSL2, using the listed Windows Terminal and Windows build versions, and observe the selection and scroll-mode changes. The issue is done when dragging the current tab quickly over the terminal screen no longer triggers tmux's mouse handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100