all repos — fluxbox @ 4c091d0529ba1a83206c769955eb04f829691793

custom fork of the fluxbox windowmanager

fixes #1133809, ArrangeWindows doesnt respect available space on the
workspace (toolbar and slit would be covered)
mathias mathias
commit

4c091d0529ba1a83206c769955eb04f829691793

parent

085d669f2bc053f0334f81e814404c29b26e50a4

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/WorkspaceCmd.ccsrc/WorkspaceCmd.cc

@@ -159,12 +159,12 @@ const unsigned int cal_width = max_width/cols; // calculated width ratio (width of every window)

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.