Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (7 sloc) 298 Bytes
"""Returns the neighbour focus group for the current window."""
def other_group_in_pair(window):
if window.active_group() % 2 == 0:
target_group = window.active_group() + 1
else:
target_group = window.active_group() - 1
return min(target_group, window.num_groups() - 1)
Something went wrong with that request. Please try again.