std::string name;
unsigned int id;
- int cascade_x, cascade_y;
+ unsigned int cascade_x, cascade_y;
+#ifdef XINERAMA
+ unsigned int cascade_region;
+#endif // XINERAMA
Workspace(const Workspace&);
Workspace& operator=(const Workspace&);
StackVector::iterator &stack);
void placeWindow(BlackboxWindow *win);
- bool cascadePlacement(Rect& win, const Rect& availableArea);
- bool smartPlacement(Rect& win, const Rect& availableArea);
- bool underMousePlacement(Rect& win, const Rect& availableArea);
+ bool cascadePlacement(Rect& win, const int offset);
+ bool smartPlacement(Rect& win);
+ bool underMousePlacement(Rect& win);
public:
Workspace(BScreen *scrn, unsigned int i = 0);
bool isLastWindow(const BlackboxWindow* w) const;
void addWindow(BlackboxWindow *w, bool place = False);
- unsigned int removeWindow(BlackboxWindow *w);
+ void removeWindow(BlackboxWindow *w);
unsigned int getCount(void) const;
void appendStackOrder(BlackboxWindowList &stack_order) const;
void lowerWindow(BlackboxWindow *w);
void reconfigure(void);
void setCurrent(void);
+ void readName();
void setName(const std::string& new_name);
};