Tab drag causes mousedown in tmux #17585

Open
opened 2026-01-31 05:46:43 +00:00 by claunia · 5 comments
Owner

Originally created by @fabianlupa on GitHub (May 27, 2022).

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.

Originally created by @fabianlupa on GitHub (May 27, 2022). ### 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.
Author
Owner

@lhecker commented on GitHub (May 30, 2022):

I can't reproduce the issue. I suspect a race condition at play here if anything.

@lhecker commented on GitHub (May 30, 2022): I can't reproduce the issue. I suspect a race condition at play here if anything.
Author
Owner

@fabianlupa commented on GitHub (May 30, 2022):

I retried with an empty .tmux.conf. Only set -g mouse on needs to be set for this to occur for me.

@fabianlupa commented on GitHub (May 30, 2022): I retried with an empty .tmux.conf. Only `set -g mouse on` needs to be set for this to occur for me.
Author
Owner

@lhecker commented on GitHub (May 30, 2022):

Thanks! Putting set -g mouse on into .tmux.conf makes this easily reproducible!

@lhecker commented on GitHub (May 30, 2022): Thanks! Putting `set -g mouse on` into `.tmux.conf` makes this easily reproducible!
Author
Owner

@zadjii-msft commented on GitHub (May 31, 2022):

Hmm. This is sorta like #9109, but different. Hmm.

@zadjii-msft commented on GitHub (May 31, 2022): Hmm. This is sorta like #9109, but different. Hmm.
Author
Owner

@zadjii-msft commented on GitHub (Nov 8, 2022):

(FWIW still repros around 1.16-1.17 timeframe)

@zadjii-msft commented on GitHub (Nov 8, 2022): (FWIW still repros around 1.16-1.17 timeframe)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17585