Top |
Maintains a mapping from windows to applications (.desktop file ids). It currently implements this with some heuristics on the WM_CLASS X11 property (and some static override regexps); in the future, we want to have it also track through startup-notification.
CinnamonWindowTracker *
cinnamon_window_tracker_get_default (void
);
CinnamonApp * cinnamon_window_tracker_get_window_app (CinnamonWindowTracker *tracker
,MetaWindow *metawin
);
CinnamonApp * cinnamon_window_tracker_get_app_from_pid (CinnamonWindowTracker *tracker
,int pid
);
Look up the application corresponding to a process.
gboolean cinnamon_window_tracker_is_window_interesting (CinnamonWindowTracker *tracker
,MetaWindow *window
);
The CinnamonWindowTracker associates certain kinds of windows with applications; however, others we don't want to appear in places where we want to give a list of windows for an application, such as the alt-tab dialog.
An example of a window we don't want to show is the root desktop window. We skip all override-redirect types, and also exclude other window types like tooltip explicitly, though generally most of these should be override-redirect.
GSList *
cinnamon_window_tracker_get_startup_sequences
(CinnamonWindowTracker *tracker
);
“focus-app”
property“focus-app” CinnamonApp *
Focused application.
Owner: CinnamonWindowTracker
Flags: Read
“startup-sequence-changed”
signalvoid user_function (CinnamonWindowTracker *cinnamonwindowtracker, MetaStartupSequence *arg1, gpointer user_data)
Flags: Run Last
“window-app-changed”
signalvoid user_function (CinnamonWindowTracker *cinnamonwindowtracker, MetaWindow *arg1, gpointer user_data)
Flags: Run Last