commit 4caf5cc
Michael Forney
·
2014-01-30 10:19:58 +0000 UTC
parent 195c797
example/wm: Fix calculation of x coordinate for window geometry
1 files changed,
+1,
-1
+1,
-1
1@@ -72,7 +72,7 @@ static void arrange(struct screen * screen)
2 for (column_index = 0; &window->link != &screen->windows; ++column_index)
3 {
4 geometry.x = screen_geometry->x + border_width
5- + screen_geometry->width * column_index / num_columns + border_width;
6+ + screen_geometry->width * column_index / num_columns;
7 geometry.width = screen_geometry->width / num_columns
8 - 2 * border_width;
9