wayland-surface: Make sure to apply the margin before moving the window

This commit is contained in:
Jasper St. Pierre 2014-07-03 10:28:31 -04:00
parent bce812ecbc
commit 66eb4bc34c

View File

@ -166,6 +166,9 @@ static void
toplevel_surface_commit (MetaWaylandSurface *surface,
MetaWaylandPendingState *pending)
{
if (pending->frame_extents_changed)
meta_window_set_custom_frame_extents (surface->window, &pending->frame_extents);
if (pending->newly_attached)
{
MetaWindow *window = surface->window;
@ -187,9 +190,6 @@ toplevel_surface_commit (MetaWaylandSurface *surface,
meta_window_wayland_move_resize (window, new_width, new_height, pending->dx, pending->dy);
}
}
if (pending->frame_extents_changed)
meta_window_set_custom_frame_extents (surface->window, &pending->frame_extents);
}
static void