core: Add a in-tree copy of GtkBorder

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2407>
This commit is contained in:
Bilal Elmoussaoui
2022-05-09 11:24:23 +02:00
parent b0b21e8274
commit 64ee8d02f7
6 changed files with 30 additions and 15 deletions

View File

@ -4354,7 +4354,7 @@ meta_window_client_rect_to_frame_rect (MetaWindow *window,
}
else
{
const GtkBorder *extents = &window->custom_frame_extents;
const MetaFrameBorder *extents = &window->custom_frame_extents;
frame_rect->x += extents->left;
frame_rect->y += extents->top;
if (frame_rect->width != G_MAXINT)
@ -4395,7 +4395,7 @@ meta_window_frame_rect_to_client_rect (MetaWindow *window,
}
else
{
const GtkBorder *extents = &window->custom_frame_extents;
const MetaFrameBorder *extents = &window->custom_frame_extents;
client_rect->x -= extents->left;
client_rect->y -= extents->top;
client_rect->width += extents->left + extents->right;