[mutter] window-x11: Move the comment about StaticGravity resizing down



commit feae23506bf720181dbffd55354933f838b42f19
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed May 21 13:43:12 2014 -0400

    window-x11: Move the comment about StaticGravity resizing down

 src/x11/window-x11.c |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c
index e5db696..c1ee595 100644
--- a/src/x11/window-x11.c
+++ b/src/x11/window-x11.c
@@ -1064,21 +1064,6 @@ meta_window_x11_move_resize_internal (MetaWindow                *window,
                   window->frame->rect.height);
     }
 
-  /* For nice effect, when growing the window we want to move/resize
-   * the frame first, when shrinking the window we want to move/resize
-   * the client first. If we grow one way and shrink the other,
-   * see which way we're moving "more"
-   *
-   * Mail from Owen subject "Suggestion: Gravity and resizing from the left"
-   * http://mail.gnome.org/archives/wm-spec-list/1999-November/msg00088.html
-   *
-   * An annoying fact you need to know in this code is that StaticGravity
-   * does nothing if you _only_ resize or _only_ move the frame;
-   * it must move _and_ resize, otherwise you get NorthWestGravity
-   * behavior. The move and resize must actually occur, it is not
-   * enough to set CWX | CWWidth but pass in the current size/pos.
-   */
-
   if (window->frame)
     {
       int new_x, new_y;
@@ -1164,6 +1149,21 @@ meta_window_x11_move_resize_internal (MetaWindow                *window,
    * efficiently as possible
    */
 
+  /* For nice effect, when growing the window we want to move/resize
+   * the frame first, when shrinking the window we want to move/resize
+   * the client first. If we grow one way and shrink the other,
+   * see which way we're moving "more"
+   *
+   * Mail from Owen subject "Suggestion: Gravity and resizing from the left"
+   * http://mail.gnome.org/archives/wm-spec-list/1999-November/msg00088.html
+   *
+   * An annoying fact you need to know in this code is that StaticGravity
+   * does nothing if you _only_ resize or _only_ move the frame;
+   * it must move _and_ resize, otherwise you get NorthWestGravity
+   * behavior. The move and resize must actually occur, it is not
+   * enough to set CWX | CWWidth but pass in the current size/pos.
+   */
+
   /* Normally, we configure the frame first depending on whether
    * we grow the frame more than we shrink. The idea is to avoid
    * messing up the window contents by having a temporary situation


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