Skip to content

Commit a912b1a

Browse files
committed
added the logic for the method after re-reading Tony's issue statement with stubbed solution
1 parent b8b77cf commit a912b1a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tmuxp/workspacebuilder.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ def build(self, session=None):
195195
for w, wconf in self.iter_create_windows(session):
196196
assert isinstance(w, Window)
197197

198+
for plugin in self.plugins:
199+
plugin.on_window_create(w)
200+
198201
focus_pane = None
199202
for p, pconf in self.iter_create_panes(w, wconf):
200203
assert isinstance(p, Pane)
@@ -209,10 +212,11 @@ def build(self, session=None):
209212
if 'focus' in wconf and wconf['focus']:
210213
focus = w
211214

212-
for plugin in self.plugins:
213-
plugin.on_window_create(w)
214215
self.config_after_window(w, wconf)
215216

217+
for plugin in self.plugins:
218+
plugin.after_window_finished(w)
219+
216220
if focus_pane:
217221
focus_pane.select_pane()
218222

0 commit comments

Comments
 (0)