mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
window/x11: Rename meta_window_x11_buffer_rect_to_frame_rect
To keep consistent and avoid confusion, rename the function: `meta_window_x11_buffer_rect_to_frame_rect()` to: `meta_window_x11_surface_rect_to_frame_rect()` As this function doesn't deal with the `window->buffer_rect` at all. https://gitlab.gnome.org/GNOME/mutter/merge_requests/1091
This commit is contained in:
parent
267f712068
commit
0743381573
@ -929,7 +929,7 @@ build_and_scan_frame_mask (MetaWindowActorX11 *actor_x11,
|
||||
*/
|
||||
if (meta_window_x11_always_update_shape (window))
|
||||
{
|
||||
meta_window_x11_buffer_rect_to_frame_rect (window, &rect, &frame_rect);
|
||||
meta_window_x11_surface_rect_to_frame_rect (window, &rect, &frame_rect);
|
||||
get_client_area_rect_from_texture (actor_x11, stex, &client_area);
|
||||
}
|
||||
else
|
||||
|
@ -4075,8 +4075,8 @@ meta_window_x11_always_update_shape (MetaWindow *window)
|
||||
}
|
||||
|
||||
void
|
||||
meta_window_x11_buffer_rect_to_frame_rect (MetaWindow *window,
|
||||
MetaRectangle *buffer_rect,
|
||||
meta_window_x11_surface_rect_to_frame_rect (MetaWindow *window,
|
||||
MetaRectangle *surface_rect,
|
||||
MetaRectangle *frame_rect)
|
||||
|
||||
{
|
||||
@ -4086,7 +4086,7 @@ meta_window_x11_buffer_rect_to_frame_rect (MetaWindow *window,
|
||||
|
||||
meta_frame_calc_borders (window->frame, &borders);
|
||||
|
||||
*frame_rect = *buffer_rect;
|
||||
*frame_rect = *surface_rect;
|
||||
frame_rect->x += borders.invisible.left;
|
||||
frame_rect->y += borders.invisible.top;
|
||||
frame_rect->width -= borders.invisible.left + borders.invisible.right;
|
||||
|
@ -89,8 +89,8 @@ void meta_window_x11_set_thaw_after_paint (MetaWindow *window,
|
||||
gboolean meta_window_x11_should_thaw_after_paint (MetaWindow *window);
|
||||
gboolean meta_window_x11_always_update_shape (MetaWindow *window);
|
||||
|
||||
void meta_window_x11_buffer_rect_to_frame_rect (MetaWindow *window,
|
||||
MetaRectangle *buffer_rect,
|
||||
void meta_window_x11_surface_rect_to_frame_rect (MetaWindow *window,
|
||||
MetaRectangle *surface_rect,
|
||||
MetaRectangle *frame_rect);
|
||||
void meta_window_x11_surface_rect_to_client_rect (MetaWindow *window,
|
||||
MetaRectangle *surface_rect,
|
||||
|
Loading…
Reference in New Issue
Block a user