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:
@ -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 *
|
||||
|
Reference in New Issue
Block a user