print('d2: len(parent.nodes):', len(parent.nodes),' > 1',
'and ( ph:',ph,' > h + 10:',h + 10,' or pw:',pw,' > w:',w,' )',
'and (screen_w:',screen_w,' < screen_h:',screen_h,' or w <= half_w:',half_w,')',
- 'and h <= half_h:',half_h,'))')
+ 'and h <= half_h:',half_h,')')
# h + 10 because a tabbed window loses high compared to its parent.
# Note, it is redundant since we check above if the parent is tabbed,
if (len(parent.nodes) > 1
and ( ph > h + 10 or pw > w )
and ( screen_w < screen_h or w <= half_w )
- and h <= half_h )):
+ and h <= half_h ):
i3.command('split vertical, layout tabbed')
# print('d1: tabbed')