[MetaWindow] Accessor for the instance part of WM_CLASS property
https://bugzilla.gnome.org/show_bug.cgi?id=613128
This commit is contained in:
parent
650a1e807c
commit
d537dd93d5
@ -8924,7 +8924,7 @@ meta_window_get_description (MetaWindow *window)
|
|||||||
* meta_window_get_wm_class:
|
* meta_window_get_wm_class:
|
||||||
* @window: a #MetaWindow
|
* @window: a #MetaWindow
|
||||||
*
|
*
|
||||||
* Return the current value of the WM_CLASS X property.
|
* Return the current value of the name part of WM_CLASS X property.
|
||||||
*/
|
*/
|
||||||
const char *
|
const char *
|
||||||
meta_window_get_wm_class (MetaWindow *window)
|
meta_window_get_wm_class (MetaWindow *window)
|
||||||
@ -8935,6 +8935,21 @@ meta_window_get_wm_class (MetaWindow *window)
|
|||||||
return window->res_class;
|
return window->res_class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* meta_window_get_wm_class_instance:
|
||||||
|
* @window: a #MetaWindow
|
||||||
|
*
|
||||||
|
* Return the current value of the instance part of WM_CLASS X property.
|
||||||
|
*/
|
||||||
|
const char *
|
||||||
|
meta_window_get_wm_class_instance (MetaWindow *window)
|
||||||
|
{
|
||||||
|
if (!window)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
return window->res_name;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* meta_window_get_compositor_private:
|
* meta_window_get_compositor_private:
|
||||||
* @window: a #MetaWindow
|
* @window: a #MetaWindow
|
||||||
|
@ -88,6 +88,7 @@ void meta_window_activate_with_workspace (MetaWindow *window,
|
|||||||
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);
|
const char * meta_window_get_wm_class (MetaWindow *window);
|
||||||
|
const char * meta_window_get_wm_class_instance (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