]> git.sur5r.net Git - i3/i3/blobdiff - include/data.h
Bugfix: Store width_factor/height_factor per workspace, not per container
[i3/i3] / include / data.h
index e511a7fb66fa59e98131df2ce25e6fe1ed0faaf5..af6b3ef5a0fd27530e0d4767c4af97490b29e79c 100644 (file)
@@ -174,6 +174,12 @@ struct Workspace {
         /* This is a two-dimensional dynamic array of Container-pointers. I’ve always wanted
          * to be a three-star programmer :) */
         Container ***table;
+
+        /* width_factor and height_factor contain the amount of space (percentage) a column/row
+           has of all the space which is available for resized windows. This ensures that
+           non-resized windows (newly opened, for example) have the same size as always */
+        float *width_factor;
+        float *height_factor;
 };
 
 /*
@@ -312,11 +318,6 @@ struct Container {
         /* Width/Height of the container. Changeable by the user */
         int width;
         int height;
-        /* width_factor and height_factor contain the amount of space (percentage) a window
-           has of all the space which is available for resized windows. This ensures that
-           non-resized windows (newly opened, for example) have the same size as always */
-        float width_factor;
-        float height_factor;
 
         /* When in stacking mode, we draw the titlebars of each client onto a separate window */
         struct Stack_Window stack_win;