window: Allow checking if a window covers a rect
This is just a small function to improve the readability of the code. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1154>
This commit is contained in:
@ -4281,6 +4281,14 @@ meta_window_get_session_geometry (MetaWindow *window,
|
||||
window->size_hints.height_inc;
|
||||
}
|
||||
|
||||
gboolean
|
||||
meta_window_geometry_contains_rect (MetaWindow *window,
|
||||
MtkRectangle *rect)
|
||||
{
|
||||
return mtk_rectangle_contains_rect (&window->rect,
|
||||
rect);
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_window_get_buffer_rect:
|
||||
* @window: a #MetaWindow
|
||||
|
Reference in New Issue
Block a user