} // switch
if (! placed) {
- Point *p = cascade(win);
+ const Point *const p = cascade(win);
place_x=p->x();
place_y=p->y();
delete p;
win->configure(place_x, place_y, win->size().w(), win->size().h());
}
-Point *Workspace::cascade(const OpenboxWindow *const win){
+inline const Point *const Workspace::cascade(const OpenboxWindow *const win){
if (((unsigned) cascade_x > (screen.size().w() / 2)) ||
((unsigned) cascade_y > (screen.size().h() / 2)))
cascade_x = cascade_y = 32;
void placeWindow(OpenboxWindow *);
Point *bestFitPlacement(const Size &win_size, const Rect &space);
Point *rowSmartPlacement(const Size &win_size, const Rect &space);
- Point *cascade(const OpenboxWindow* window);
+ const Point *const cascade(const OpenboxWindow* window);
public:
Workspace(BScreen &, int = 0);