[gnome-shell] Don't try to track remote windows
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Don't try to track remote windows
- Date: Mon, 7 Jun 2010 20:38:37 +0000 (UTC)
commit 8aeadcdf9a78e13b46c4f0ac3a5a8cc7443d79d6
Author: Colin Walters <walters verbum org>
Date: Mon Jun 7 11:28:06 2010 -0400
Don't try to track remote windows
Previously we were trying to match up remote windows with local
.desktop files, which is definitely wrong. This patch simply
falls back to the app-from-window case for this; better handling
would need design.
https://bugzilla.gnome.org/show_bug.cgi?id=620855
src/shell-window-tracker.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/shell-window-tracker.c b/src/shell-window-tracker.c
index 1e95b58..4a5d3a2 100644
--- a/src/shell-window-tracker.c
+++ b/src/shell-window-tracker.c
@@ -259,10 +259,8 @@ window_is_tracked (MetaWindow *window)
gboolean
shell_window_tracker_is_window_interesting (MetaWindow *window)
{
- if (!window_is_tracked (window))
- return FALSE;
-
- if (meta_window_is_skip_taskbar (window))
+ if (meta_window_is_override_redirect (window)
+ || meta_window_is_skip_taskbar (window))
return FALSE;
switch (meta_window_get_window_type (window))
@@ -396,6 +394,9 @@ get_app_for_window (ShellWindowTracker *monitor,
ShellApp *result;
const char *startup_id;
+ if (meta_window_is_remote (window))
+ return shell_app_system_get_app_for_window (shell_app_system_get_default (), window);
+
result = NULL;
/* First, we check whether we already know about this window,
* if so, just return that.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]