Skip to content

Commit

Permalink
launch: Focus next window if top-to-focus is already top
Browse files Browse the repository at this point in the history
When bringing a couple of windows to front, and the thought-out topmost
of those already is the topmost window, then we skip focusing that window.
  • Loading branch information
bluss committed Apr 7, 2011
1 parent d4b9633 commit b74c458
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kupfer/launch.py
Expand Up @@ -266,6 +266,9 @@ def normal_window(window):
if (cur_wspc_windows and
set(vis_windows[-len(cur_wspc_windows):]) != set(cur_wspc_windows)):
focus_windows = cur_wspc_windows
## if the topmost window is already active, take another
if focus_windows[-1:] == vis_windows[-1:]:
focus_windows[:] = focus_windows[:-1]
else:
# all windows are focused, find on next workspace
for wspc in all_workspaces[1:]:
Expand Down

0 comments on commit b74c458

Please sign in to comment.