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
{
MetaWaylandPointerGrab grab;
@ -883,7 +868,7 @@ start_surface_move (MetaWaylandShellSurface *shell_surface,
move = g_slice_new (MetaWaylandMoveGrab);
meta_window_get_surface_rect (shell_surface->surface->window,
meta_window_get_input_rect (shell_surface->surface->window,
&rect);
move->dx = wl_fixed_from_int (rect.x) - seat->pointer.grab_x;