Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

launch: Focus next window if top-to-focus is already top

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...
commit b74c458621ab7de05669612c3749ca8704f16287 1 parent d4b9633
engla authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  kupfer/launch.py
3  kupfer/launch.py
View
@@ -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:]:
Please sign in to comment.
Something went wrong with that request. Please try again.