meta-wayland: Remove get_surface_rect

It's the same as get_input_rect, which we already have in window.
This commit is contained in:
Jasper St. Pierre 2013-08-12 12:13:45 -04:00
parent 9b966561c4
commit 0ee2c21da7

View File

@ -723,21 +723,6 @@ shell_surface_pong (struct wl_client *client,
{ {
} }
/* TODO: consider adding this to window.c */
static void
meta_window_get_surface_rect (const MetaWindow *window,
MetaRectangle *rect)
{
if (window->frame)
{
MetaFrameBorders borders;
*rect = window->frame->rect;
meta_frame_calc_borders (window->frame, &borders);
}
else
*rect = window->rect;
}
typedef struct _MetaWaylandGrab typedef struct _MetaWaylandGrab
{ {
MetaWaylandPointerGrab grab; MetaWaylandPointerGrab grab;
@ -883,8 +868,8 @@ start_surface_move (MetaWaylandShellSurface *shell_surface,
move = g_slice_new (MetaWaylandMoveGrab); move = g_slice_new (MetaWaylandMoveGrab);
meta_window_get_surface_rect (shell_surface->surface->window, meta_window_get_input_rect (shell_surface->surface->window,
&rect); &rect);
move->dx = wl_fixed_from_int (rect.x) - seat->pointer.grab_x; move->dx = wl_fixed_from_int (rect.x) - seat->pointer.grab_x;
move->dy = wl_fixed_from_int (rect.y) - seat->pointer.grab_y; move->dy = wl_fixed_from_int (rect.y) - seat->pointer.grab_y;