mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 20:01:00 -05:00
window: Expose the client type in the API
We already have the enum exposed, but no accessor function.
Add `meta_window_get_client_type()` which returns the
`MetaWindowClientType` of a window.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/306
(cherry picked from commit 7a5e0c7824
)
This commit is contained in:
parent
e19a294e44
commit
0c9eb18b06
@ -8482,3 +8482,17 @@ meta_window_get_id (MetaWindow *window)
|
||||
{
|
||||
return window->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_window_get_client_type:
|
||||
* @window: a #MetaWindow
|
||||
*
|
||||
* Returns the #MetaWindowClientType of the window.
|
||||
*
|
||||
* Returns: (transfer none): The root ancestor window
|
||||
*/
|
||||
MetaWindowClientType
|
||||
meta_window_get_client_type (MetaWindow *window)
|
||||
{
|
||||
return window->client_type;
|
||||
}
|
||||
|
@ -262,4 +262,6 @@ void meta_window_shove_titlebar_onscreen (MetaWindow *window);
|
||||
|
||||
uint64_t meta_window_get_id (MetaWindow *window);
|
||||
|
||||
MetaWindowClientType meta_window_get_client_type (MetaWindow *window);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user