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
|
gboolean
|
||||||
mutter_window_is_override_redirect (MutterWindow *self)
|
mutter_window_is_override_redirect (MutterWindow *self)
|
||||||
{
|
{
|
||||||
if (self->priv->window->override_redirect)
|
return meta_window_is_override_redirect (self->priv->window);
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *mutter_window_get_description (MutterWindow *self)
|
const char *mutter_window_get_description (MutterWindow *self)
|
||||||
|
@ -8579,6 +8579,20 @@ meta_window_is_shaded (MetaWindow *window)
|
|||||||
return window->shaded;
|
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 *
|
MetaRectangle *
|
||||||
meta_window_get_rect (MetaWindow *window)
|
meta_window_get_rect (MetaWindow *window)
|
||||||
{
|
{
|
||||||
|
@ -70,6 +70,7 @@ GType meta_window_get_type (void);
|
|||||||
MetaFrame *meta_window_get_frame (MetaWindow *window);
|
MetaFrame *meta_window_get_frame (MetaWindow *window);
|
||||||
gboolean meta_window_has_focus (MetaWindow *window);
|
gboolean meta_window_has_focus (MetaWindow *window);
|
||||||
gboolean meta_window_is_shaded (MetaWindow *window);
|
gboolean meta_window_is_shaded (MetaWindow *window);
|
||||||
|
gboolean meta_window_is_override_redirect (MetaWindow *window);
|
||||||
MetaRectangle *meta_window_get_rect (MetaWindow *window);
|
MetaRectangle *meta_window_get_rect (MetaWindow *window);
|
||||||
void meta_window_get_outer_rect (const MetaWindow *window, MetaRectangle *rect);
|
void meta_window_get_outer_rect (const MetaWindow *window, MetaRectangle *rect);
|
||||||
MetaScreen *meta_window_get_screen (MetaWindow *window);
|
MetaScreen *meta_window_get_screen (MetaWindow *window);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user