def kill_single_win_containers(i3, e, node, parent):
if len(parent.nodes) == 1 and len(node.nodes) == 0:
def kill_single_win_containers(i3, e, node, parent):
if len(parent.nodes) == 1 and len(node.nodes) == 0:
# parent is a single window container, kill it.
# Note: based on testing,
# parent is a single window container, kill it.
# Note: based on testing,
# we could create our disabling file here
# and delete it later if it wasn't already there.
i3.command('[con_id=%s] focus' % node.id)
# we could create our disabling file here
# and delete it later if it wasn't already there.
i3.command('[con_id=%s] focus' % node.id)
i3.command('[con_mark="i3ha"] focus')
i3.command('move window to mark i3hb')
i3.command('unmark i3ha')
i3.command('[con_mark="i3ha"] focus')
i3.command('move window to mark i3hb')
i3.command('unmark i3ha')