Skip to content

Commit 5f61105

Browse files
NagyViktclaude
andcommitted
v1.22: drop -O from right-click menu so the pane unfreezes on click-outside
The example tmux snippet bound `MouseDown3Pane` to `display-menu -O …`. The `-O` flag tells tmux to hold the menu open until an item is picked or Escape is pressed — releasing the mouse outside the menu does nothing. Inside a TUI that grabs keystrokes (Claude Code's chat input is the reported case), the running pane appears completely frozen after a right-click: typing produces no output until the user remembers Escape. Dropping `-O` switches to standard native-GUI behaviour: clicking outside the menu, or releasing the mouse outside the menu, auto- dismisses it and the pane is immediately responsive again. Escape still closes the menu; item-selection still closes it; the visible menu rows are unchanged. Scope is the example snippet only — bin/, rs/, and systemd/ are not touched. The `examples/kitty.conf.snippet` peer file has no analogous binding so no symmetric edit is needed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d241f32 commit 5f61105

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ Release-tag policy: every `vX.Y` commit on `main` must be tagged and have a matc
2525
- `assets/hero-flow-light.svg` light-mode variant
2626
- README badges, animated SVG hero, animated tier-comparison chart, Mermaid sequence diagram, AI-assistant TL;DR block, extended FAQ, alternatives comparison
2727

28+
## [1.22] - 2026-05-19
29+
30+
### Fixed
31+
- `examples/tmux.conf.snippet`: dropped the `-O` flag from the right-click menu binding so the menu auto-dismisses on click-outside / mouse-release-outside. With `-O` the menu held the pane in modal-grab until Escape, which read as the pane being "frozen" after a right-click — most visible in TUIs that grab keystrokes (Claude Code chat input).
32+
2833
## [1.19] - 2026-05-19
2934

3035
### Fixed

examples/tmux.conf.snippet

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@ bind -n MouseDown2Pane run-shell -b "buf=$(sh -c '#{@paste}'); if [ -n \"$buf\"
4747
# invokes `flashpaste-trigger '#{pane_id}'` with the TMUX_PASTE_TRIGGER
4848
# env var so ~/.local/state/flashpaste-trigger.log can distinguish the
4949
# right-click path from the C-v path during debugging.
50-
bind -n MouseDown3Pane display-menu -O -x M -y M \
50+
#
51+
# No `-O` flag: the menu auto-dismisses on click-outside / mouse-release
52+
# outside the menu, matching native GUI menus. Escape still closes it,
53+
# and item-selection still works. With `-O` the menu stuck open until
54+
# Escape, which read as the pane being "frozen" after a right-click —
55+
# visible in TUIs like Claude Code that grab keystrokes (v1.22).
56+
bind -n MouseDown3Pane display-menu -x M -y M \
5157
-T "#[align=centre,fg=#FFFFFF,bold] pane #{pane_index} " \
5258
"#[fg=#34C759]↳ Paste" p \
5359
"run-shell -b \"TMUX_PASTE_TRIGGER=right-click-menu flashpaste-trigger '#{pane_id}' 2>/dev/null || TMUX_PASTE_TRIGGER=right-click-menu /home/$USER/.local/bin/tmux-paste-dispatch.sh '#{pane_id}'\""

0 commit comments

Comments
 (0)