Commit 7a5e0c78 authored by Olivier Fourdan's avatar Olivier Fourdan

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.

parent c786b6c1
Pipeline #45969 passed with stages
in 5 minutes and 20 seconds
......@@ -8531,3 +8531,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
meta_window_get_client_type (MetaWindow *window)
return window->client_type;
......@@ -261,4 +261,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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment