From 97ac78e49f72f229d07f7db6e9f0eed006c487d6 Mon Sep 17 00:00:00 2001 From: Ales Friedl Date: Tue, 29 Jan 2019 16:53:18 +0100 Subject: [PATCH 1/2] set window focus fix --- tmuxp/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmuxp/cli.py b/tmuxp/cli.py index 82843b3acee..c396f6cc9e8 100644 --- a/tmuxp/cli.py +++ b/tmuxp/cli.py @@ -168,8 +168,8 @@ def set_layout_hook(session, hook_name): # with the client hook_cmd.append('selectw -t {}'.format(window.id)) # edit: removed -t, or else it won't respect main-pane-w/h - hook_cmd.append('selectl'.format(window.id)) - hook_cmd.append('selectw -p'.format(window.id)) + hook_cmd.append('selectw -l {}'.format(window.id)) + hook_cmd.append('selectw -p {}'.format(window.id)) # unset the hook immediately after executing hook_cmd.append( From 3c76fcfbcf092e87667da134462575998af5d71e Mon Sep 17 00:00:00 2001 From: Ales Friedl Date: Tue, 29 Jan 2019 18:20:36 +0100 Subject: [PATCH 2/2] fixup! set window focus fix --- tmuxp/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmuxp/cli.py b/tmuxp/cli.py index c396f6cc9e8..8046f3554f0 100644 --- a/tmuxp/cli.py +++ b/tmuxp/cli.py @@ -168,8 +168,8 @@ def set_layout_hook(session, hook_name): # with the client hook_cmd.append('selectw -t {}'.format(window.id)) # edit: removed -t, or else it won't respect main-pane-w/h - hook_cmd.append('selectw -l {}'.format(window.id)) - hook_cmd.append('selectw -p {}'.format(window.id)) + hook_cmd.append('selectl') + hook_cmd.append('selectw -l') # unset the hook immediately after executing hook_cmd.append(