[kupfer] launch: Only work with normal windows
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer] launch: Only work with normal windows
- Date: Wed, 30 Mar 2011 19:18:30 +0000 (UTC)
commit 461ad4311b7daf20a2f4431c58ad6af5d8636818
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Wed Mar 30 21:10:25 2011 +0200
launch: Only work with normal windows
kupfer/launch.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/launch.py b/kupfer/launch.py
index c9fb27d..b25dc57 100644
--- a/kupfer/launch.py
+++ b/kupfer/launch.py
@@ -209,14 +209,16 @@ class ApplicationsMatcherService (pretty.OutputMixin):
def application_is_running(self, app_id):
for w in self._get_wnck_screen_windows_stacked():
- if w.get_application() and self._is_match(app_id, w):
+ if (w.get_application() and self._is_match(app_id, w) and
+ w.get_window_type() == wnck.WINDOW_NORMAL):
return True
return False
def get_application_windows(self, app_id):
application_windows = []
for w in self._get_wnck_screen_windows_stacked():
- if w.get_application() and self._is_match(app_id, w):
+ if (w.get_application() and self._is_match(app_id, w) and
+ w.get_window_type() == wnck.WINDOW_NORMAL):
application_windows.append(w)
return application_windows
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]