mtk: Add Rectangle.contains_point

By turning a macro that exists in the codebase to a proper
function so that gnome-shell could make use of it as well
instead of using a region for it contains_point api...

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3801>
This commit is contained in:
Bilal Elmoussaoui
2024-06-11 00:40:10 +02:00
parent 2f8a598582
commit 6c972546f1
7 changed files with 39 additions and 11 deletions

View File

@ -1456,7 +1456,7 @@ window_contains_point (MetaWindow *window,
meta_window_get_frame_rect (window, &rect);
return META_POINT_IN_RECT (root_x, root_y, rect);
return mtk_rectangle_contains_point (&rect, root_x, root_y);
}
MetaWindow *