diff --git a/src/shell-app-monitor.c b/src/shell-app-monitor.c index fc063ce18..77c28f703 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; }