mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
Add meta_window_is_override_redirect
Trivial function, useful for plugins which are doing analysis of windows.
This commit is contained in:
parent
5e581b409c
commit
e960269653
@ -701,10 +701,7 @@ mutter_window_get_window_type (MutterWindow *self)
|
||||
gboolean
|
||||
mutter_window_is_override_redirect (MutterWindow *self)
|
||||
{
|
||||
if (self->priv->window->override_redirect)
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
return meta_window_is_override_redirect (self->priv->window);
|
||||
}
|
||||
|
||||
const char *mutter_window_get_description (MutterWindow *self)
|
||||
|
@ -8579,6 +8579,20 @@ meta_window_is_shaded (MetaWindow *window)
|
||||
return window->shaded;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_window_is_override_redirect:
|
||||
* @window: A #MetaWindow
|
||||
*
|
||||
* Returns if this window isn't managed by mutter; it will
|
||||
* control its own positioning and mutter won't draw decorations
|
||||
* among other things. In X terminology this is "override redirect".
|
||||
*/
|
||||
gboolean
|
||||
meta_window_is_override_redirect (MetaWindow *window)
|
||||
{
|
||||
return window->override_redirect;
|
||||
}
|
||||
|
||||
MetaRectangle *
|
||||
meta_window_get_rect (MetaWindow *window)
|
||||
{
|
||||
|
@ -70,6 +70,7 @@ GType meta_window_get_type (void);
|
||||
MetaFrame *meta_window_get_frame (MetaWindow *window);
|
||||
gboolean meta_window_has_focus (MetaWindow *window);
|
||||
gboolean meta_window_is_shaded (MetaWindow *window);
|
||||
gboolean meta_window_is_override_redirect (MetaWindow *window);
|
||||
MetaRectangle *meta_window_get_rect (MetaWindow *window);
|
||||
void meta_window_get_outer_rect (const MetaWindow *window, MetaRectangle *rect);
|
||||
MetaScreen *meta_window_get_screen (MetaWindow *window);
|
||||
|
Loading…
Reference in New Issue
Block a user