home · contact · privacy
Don't update more windows than necessary in resize_active_win().
authorChristian Heller <c.heller@plomlompom.de>
Mon, 26 Aug 2013 10:47:08 +0000 (12:47 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 26 Aug 2013 10:47:08 +0000 (12:47 +0200)
src/windows.c

index 64e610847a270313b21990660a3cec081ef4e95f..a7bf88fc22ba063b46de8d6fc49aa6a4adf3ab83 100644 (file)
@@ -506,11 +506,11 @@ extern uint8_t resize_active_win(struct WinMeta * wmeta, struct yx_uint16 size)
         && size.y < wmeta->padframe.size.y)
     {
         wmeta->active->frame.size = size;
-        return update_wins(wmeta, wmeta->_chain_start); /* Following windows' */
-    }                                                   /* positioning may be */
-    return 0;                                           /* affected.          */
-}                                                       /* TODO: Why start at */
-                                                        /* chain_start then?  */
+        return update_wins(wmeta, wmeta->active); /* Positioning of following */
+    }                                             /* windows may be affected. */
+    return 0;
+}
+
 
 
 extern void cycle_active_win(struct WinMeta * wmeta, char dir)