[mutter/wayland] meta-wayland: Remove get_surface_rect
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wayland] meta-wayland: Remove get_surface_rect
- Date: Mon, 12 Aug 2013 16:14:02 +0000 (UTC)
commit 0ee2c21da712fc3c72e81df5087e072c5d4bea77
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Aug 12 12:13:45 2013 -0400
meta-wayland: Remove get_surface_rect
It's the same as get_input_rect, which we already have in window.
src/wayland/meta-wayland.c | 19 ++-----------------
1 files changed, 2 insertions(+), 17 deletions(-)
---
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index b354201..b260c0d 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -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,8 +868,8 @@ start_surface_move (MetaWaylandShellSurface *shell_surface,
move = g_slice_new (MetaWaylandMoveGrab);
- meta_window_get_surface_rect (shell_surface->surface->window,
- &rect);
+ meta_window_get_input_rect (shell_surface->surface->window,
+ &rect);
move->dx = wl_fixed_from_int (rect.x) - seat->pointer.grab_x;
move->dy = wl_fixed_from_int (rect.y) - seat->pointer.grab_y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]