mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 16:34:10 +00:00
Add meta_window_get_wm_class
Public function to retrieve the cached WM_CLASS, used in gnome-shell for tracking applications.
This commit is contained in:
parent
aff4cf1103
commit
2ed1bf05d1
@ -8687,6 +8687,21 @@ meta_window_get_description (MetaWindow *window)
|
|||||||
return window->desc;
|
return window->desc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* meta_window_get_wm_class:
|
||||||
|
* @window: a #MetaWindow
|
||||||
|
*
|
||||||
|
* Return the current value of the WM_CLASS X property.
|
||||||
|
*/
|
||||||
|
const char *
|
||||||
|
meta_window_get_wm_class (MetaWindow *window)
|
||||||
|
{
|
||||||
|
if (!window)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
return window->res_class;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* meta_window_get_compositor_private:
|
* meta_window_get_compositor_private:
|
||||||
* @window: a #MetaWindow
|
* @window: a #MetaWindow
|
||||||
|
@ -85,6 +85,7 @@ void meta_window_activate_with_workspace (MetaWindow *window,
|
|||||||
guint32 current_time,
|
guint32 current_time,
|
||||||
MetaWorkspace *workspace);
|
MetaWorkspace *workspace);
|
||||||
const char * meta_window_get_description (MetaWindow *window);
|
const char * meta_window_get_description (MetaWindow *window);
|
||||||
|
const char * meta_window_get_wm_class (MetaWindow *window);
|
||||||
/* Return whether the window would be showing if we were on its workspace */
|
/* Return whether the window would be showing if we were on its workspace */
|
||||||
gboolean meta_window_showing_on_its_workspace (MetaWindow *window);
|
gboolean meta_window_showing_on_its_workspace (MetaWindow *window);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user