[kupfer] launch: Focus next window if top-to-focus is already top
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer] launch: Focus next window if top-to-focus is already top
- Date: Thu, 7 Apr 2011 03:51:00 +0000 (UTC)
commit b74c458621ab7de05669612c3749ca8704f16287
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Thu Apr 7 05:48:03 2011 +0200
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.
kupfer/launch.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/launch.py b/kupfer/launch.py
index d639fc8..c403681 100644
--- a/kupfer/launch.py
+++ b/kupfer/launch.py
@@ -266,6 +266,9 @@ class ApplicationsMatcherService (pretty.OutputMixin):
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:]:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]