diff options
author | mathias <mathias> | 2005-04-21 09:05:02 (GMT) |
---|---|---|
committer | mathias <mathias> | 2005-04-21 09:05:02 (GMT) |
commit | 4c091d0529ba1a83206c769955eb04f829691793 (patch) | |
tree | 0b89e7ee41c44dc10ffce8d56298896700cbb39a /src | |
parent | 085d669f2bc053f0334f81e814404c29b26e50a4 (diff) | |
download | fluxbox_paul-4c091d0529ba1a83206c769955eb04f829691793.zip fluxbox_paul-4c091d0529ba1a83206c769955eb04f829691793.tar.bz2 |
fixes #1133809, ArrangeWindows doesnt respect available space on the
workspace (toolbar and slit would be covered)
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. |