]> Dogcows Code - chaz/openbox/blobdiff - src/Workspace.h
fixed a memory leak for resource.titlebar_layout
[chaz/openbox] / src / Workspace.h
index 441a8733e4114afeca33725976aab5ff12646439..c2b920918793bfbc11e99b7c1e8f74bf8f9f05c8 100644 (file)
@@ -35,7 +35,7 @@ class OpenboxWindow;
 
 class Workspace {
 private:
-  BScreen *screen;
+  BScreen &screen;
   OpenboxWindow *lastfocus;
   Clientmenu *clientmenu;
 
@@ -49,13 +49,14 @@ protected:
   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);
 
 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; }
   
This page took 0.023142 seconds and 4 git commands to generate.