Discussion:
Bug report: Mouse click on right pane when left pane focused doesn't change focus
Robert Irelan
2015-05-23 21:27:59 UTC
Permalink
Subject: Mouse click on right pane when left pane focused doesn't
change focus

Ever since I've started running tmux 2.1 from Git, I've had the
following issue: when I split a window vertically, I can click on
the left pane to move tmux's focus to that pane, but when focused on
the left pane, clicking the right pane does not move the focus and,
moreover, causes corruption of the terminal in the left pane (the
right pane is unaffected).

Steps to reproduce:

1. Build at commit f538f2a.

2. Start a new tmux session. My server is Ubuntu 14.04; my client is iTerm2
2.1.1 running on OS X 10.10. TERM=screen-256color. The terminal
dimensions
are 238x64.

3. Split the pane vertically using `C-b %`. The original terminal is
now in the right pane.

4. Resize the split using the mouse -- I resized it to 85x64.

5. Click the mouse on the right pane -- nothing unusual happens. I
have the setting
`bind-key -T root MouseDown1Pane select-pane -t = ; send-keys -M`.

6. Click the mouse on the left pane. Focus goes to the left pane.

7. Click the mouse on the left pane -- nothing unusual happens.

8. Click the mouse on the right pane. The focus does not go to the
right pane. Furthermore, some line noise appears in the terminal on
the left and I need to run `reset` to get it working correctly again.

I've also attached a screenshot of the terminal after it's been
corrupted, as well as the results of `infocmp screen-256color`.
Nicholas Marriott
2015-05-24 12:29:08 UTC
Permalink
Are you sure you don't need mouse-utf8 turned on?

Does it work if you make your terminal smaller?
Post by Robert Irelan
Subject: Mouse click on right pane when left pane focused doesn't
change focus
Ever since I've started running tmux 2.1 from Git, I've had the
following issue: when I split a window vertically, I can click on
the left pane to move tmux's focus to that pane, but when focused on
the left pane, clicking the right pane does not move the focus and,
moreover, causes corruption of the terminal in the left pane (the
right pane is unaffected).
1. Build at commit f538f2a.
2. Start a new tmux session. My server is Ubuntu 14.04; my client is iTerm2
** **2.1.1 running on OS X 10.10. TERM=screen-256color. The terminal
dimensions
** **are 238x64.
3. Split the pane vertically using `C-b %`. The original terminal is
** **now in the right pane.
4. Resize the split using the mouse -- I resized it to 85x64.
5. Click the mouse on the right pane -- nothing unusual happens. I
** **have the setting
** **`bind-key -T root MouseDown1Pane select-pane -t = ; send-keys -M`.
6. Click the mouse on the left pane. Focus goes to the left pane.
7. Click the mouse on the left pane -- nothing unusual happens.
8. Click the mouse on the right pane. The focus does not go to the
** **right pane.** Furthermore, some line noise appears in the terminal on
** **the left and I need to run `reset` to get it working correctly again.
I've also attached a screenshot of the terminal after it's been
corrupted, as well as the results of `infocmp screen-256color`.
# Reconstructed via infocmp from file: /lib/terminfo/s/screen-256color
screen-256color|GNU Screen with 256 colors,
am, km, mir, msgr, xenl,
colors#256, cols#80, it#8, lines#24, pairs#32767,
acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M,
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
kdch1=\E[3~, kend=\E[4~, kf1=\EOP, kf10=\E[21~,
kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
khome=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
nel=\EE, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
rmcup=\E[?1049l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[23m,
rmul=\E[24m, rs2=\Ec\E[?1000l\E[?25h, sc=\E7,
setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
sgr=\E[0%?%p6%t;1%;%?%p1%t;3%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
sgr0=\E[m\017, smacs=^N, smcup=\E[?1049h, smir=\E[4h,
smkx=\E[?1h\E=, smso=\E[3m, smul=\E[4m, tbc=\E[3g,
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
Enrico Ghirardi
2015-05-24 12:49:50 UTC
Permalink
I've got the exact same setup and can't reproduce your problem.
Here's my .tmux.conf for reference
https://github.com/cHoco/dotFiles/blob/master/tmux.conf

-- 
Enrico Ghirardi

Il giorno 24 maggio 2015 @ 10:49:00, Robert Irelan (***@gmail.com) ha scritto:

Subject: Mouse click on right pane when left pane focused doesn't
change focus

Ever since I've started running tmux 2.1 from Git, I've had the
following issue: when I split a window vertically, I can click on
the left pane to move tmux's focus to that pane, but when focused on
the left pane, clicking the right pane does not move the focus and,
moreover, causes corruption of the terminal in the left pane (the
right pane is unaffected).

Steps to reproduce:

1. Build at commit f538f2a.

2. Start a new tmux session. My server is Ubuntu 14.04; my client is iTerm2
   2.1.1 running on OS X 10.10. TERM=screen-256color. The terminal dimensions
   are 238x64.

3. Split the pane vertically using `C-b %`. The original terminal is
   now in the right pane.

4. Resize the split using the mouse -- I resized it to 85x64.

5. Click the mouse on the right pane -- nothing unusual happens. I
   have the setting
   `bind-key -T root MouseDown1Pane select-pane -t = ; send-keys -M`.

6. Click the mouse on the left pane. Focus goes to the left pane.

7. Click the mouse on the left pane -- nothing unusual happens.

8. Click the mouse on the right pane. The focus does not go to the
   right pane.  Furthermore, some line noise appears in the terminal on
   the left and I need to run `reset` to get it working correctly again.

I've also attached a screenshot of the terminal after it's been
corrupted, as well as the results of `infocmp screen-256color`.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________
tmux-users mailing list
tmux-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Loading...