[ShellWindowTracker] Add shell_window_tracker_app_from_pid

In some situations we might need to look up an application from
a process identifier, such as the notification system where we
will determine application from the message sender.
This commit is contained in:
Colin Walters
2010-02-03 18:42:43 -05:00
parent fd1ce40ee7
commit ed129b40a3
2 changed files with 39 additions and 0 deletions

View File

@@ -36,6 +36,8 @@ GSList * shell_window_tracker_get_running_apps (ShellWindowTracker *monitor,
ShellApp *shell_window_tracker_get_window_app (ShellWindowTracker *monitor, MetaWindow *metawin);
ShellApp *shell_window_tracker_get_app_from_pid (ShellWindowTracker *monitor, int pid);
gboolean shell_window_tracker_is_window_interesting (MetaWindow *window);
const char *_shell_window_tracker_get_app_context (ShellWindowTracker *tracker, ShellApp *app);