[gnome-shell] [ShellAppMonitor] Handle Iceweasel tripping Firefox window title detection



commit e52cb3c213bfa1e564cd470af35000cbc5839923
Author: Colin Walters <walters verbum org>
Date:   Fri Sep 11 18:49:08 2009 -0400

    [ShellAppMonitor] Handle Iceweasel tripping Firefox window title detection
    
    We have compatibility code which detects from the window title what
    an application is.  However, the code didn't handle the case where
    we discovered by title, but didn't have the expected .desktop file
    installed.

 src/shell-app-monitor.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/shell-app-monitor.c b/src/shell-app-monitor.c
index fc063ce..77c28f7 100644
--- a/src/shell-app-monitor.c
+++ b/src/shell-app-monitor.c
@@ -437,9 +437,10 @@ get_app_for_window_direct (MetaWindow  *window)
 
       if (id != NULL)
         result = shell_app_system_load_from_desktop_file (appsys, id, NULL);
-      else
-        result = create_transient_app_for_window (window);
     }
+  if (result == NULL)
+    result = create_transient_app_for_window (window);
+
   return result;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]