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



commit 66eb4bc34ca8d1217a12f8d8c292cf0bdb3f2e63
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Jul 3 10:28:31 2014 -0400

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

 src/wayland/meta-wayland-surface.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index 15bd7e9..8097feb 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]