From 25f01f03b0216ca2b9b4fa99f88404c59e9a855e Mon Sep 17 00:00:00 2001 From: Anselmos Date: Tue, 27 Mar 2018 21:52:30 +0200 Subject: [PATCH] Fixes 'focus' problem. Comments out set_layout_hook for tmux 2.6 version that is only for outside of tmux --- tmuxp/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tmuxp/cli.py b/tmuxp/cli.py index 7c02385a939..10a072be056 100644 --- a/tmuxp/cli.py +++ b/tmuxp/cli.py @@ -351,12 +351,12 @@ def reattach(session): # below: tmuxp ran outside of tmux - if has_gte_version('2.6'): + # if has_gte_version('2.6'): # if attaching for first time - set_layout_hook(builder.session, 'client-attached') + # set_layout_hook(builder.session, 'client-attached') # for cases where user switches client for first time - set_layout_hook(builder.session, 'client-session-changed') + # set_layout_hook(builder.session, 'client-session-changed') if not detached: builder.session.attach_session()