diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/WorkspaceCmd.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc index e8dbb93..3adc3c8 100644 --- a/src/WorkspaceCmd.cc +++ b/src/WorkspaceCmd.cc | |||
@@ -159,12 +159,12 @@ void ArrangeWindowsCmd::execute() { | |||
159 | const unsigned int cal_heigth = max_heigth/rows; // heigth ratio (heigth of every window) | 159 | const unsigned int cal_heigth = max_heigth/rows; // heigth ratio (heigth of every window) |
160 | 160 | ||
161 | // Resizes and sets windows positions in columns and rows. | 161 | // Resizes and sets windows positions in columns and rows. |
162 | unsigned int x_offs = 0; // window position offset in x | 162 | unsigned int x_offs = screen->maxLeft(head); // window position offset in x |
163 | unsigned int y_offs = 0; // window position offset in y | 163 | unsigned int y_offs = screen->maxTop(head); // window position offset in y |
164 | unsigned int window = 0; // current window | 164 | unsigned int window = 0; // current window |
165 | Workspace::Windows &windowlist = space->windowList(); | 165 | Workspace::Windows &windowlist = space->windowList(); |
166 | for (unsigned int i = 0; i < rows; ++i) { | 166 | for (unsigned int i = 0; i < rows; ++i) { |
167 | x_offs = 0; | 167 | x_offs = screen->maxLeft(head); |
168 | for (unsigned int j = 0; j < cols && window < win_count; ++j, ++window) { | 168 | for (unsigned int j = 0; j < cols && window < win_count; ++j, ++window) { |
169 | if (window==(win_count-1)) { | 169 | if (window==(win_count-1)) { |
170 | // the last window gets everything that is left. | 170 | // the last window gets everything that is left. |