X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2FWorkspace.h;h=12d4dfc2c3ee9cd2d06d88dc9905b078d8127378;hb=07281446ea01d1758ed8cd2aa45d0c94ce1d9830;hp=441a8733e4114afeca33725976aab5ff12646439;hpb=424d476f7cd0ccc2def4f14119cd4fc3171d0159;p=chaz%2Fopenbox diff --git a/src/Workspace.h b/src/Workspace.h index 441a8733..12d4dfc2 100644 --- a/src/Workspace.h +++ b/src/Workspace.h @@ -35,7 +35,7 @@ class OpenboxWindow; class Workspace { private: - BScreen *screen; + BScreen &screen; OpenboxWindow *lastfocus; Clientmenu *clientmenu; @@ -46,16 +46,17 @@ private: protected: - void placeWindow(OpenboxWindow *); + void placeWindow(OpenboxWindow &); Point *bestFitPlacement(const Size &win_size, const Rect &space); Point *rowSmartPlacement(const Size &win_size, const Rect &space); - + Point *colSmartPlacement(const Size &win_size, const Rect &space); + Point *const cascadePlacement(const OpenboxWindow &window, const Rect &space); public: - Workspace(BScreen *, int = 0); + Workspace(BScreen &, int = 0); ~Workspace(void); - inline BScreen *getScreen(void) { return screen; } + inline BScreen &getScreen(void) { return screen; } inline OpenboxWindow *getLastFocusedWindow(void) { return lastfocus; }