From 4c091d0529ba1a83206c769955eb04f829691793 Mon Sep 17 00:00:00 2001 From: mathias Date: Thu, 21 Apr 2005 09:05:02 +0000 Subject: fixes #1133809, ArrangeWindows doesnt respect available space on the workspace (toolbar and slit would be covered) --- src/WorkspaceCmd.cc | 6 +++--- 1 file 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() { const unsigned int cal_heigth = max_heigth/rows; // heigth ratio (heigth of every window) // Resizes and sets windows positions in columns and rows. - unsigned int x_offs = 0; // window position offset in x - unsigned int y_offs = 0; // window position offset in y + unsigned int x_offs = screen->maxLeft(head); // window position offset in x + unsigned int y_offs = screen->maxTop(head); // window position offset in y unsigned int window = 0; // current window Workspace::Windows &windowlist = space->windowList(); for (unsigned int i = 0; i < rows; ++i) { - x_offs = 0; + x_offs = screen->maxLeft(head); for (unsigned int j = 0; j < cols && window < win_count; ++j, ++window) { if (window==(win_count-1)) { // the last window gets everything that is left. -- cgit v0.11.2