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&);
void lowerTransients(const BlackboxWindow * const win,
StackVector::iterator &stack);
+ typedef std::vector<Rect> rectList;
+ rectList calcSpace(const Rect &win, const rectList &spaces) const;
+
void placeWindow(BlackboxWindow *win);
- bool cascadePlacement(Rect& win);
+ bool cascadePlacement(Rect& win, const int offset);
bool smartPlacement(Rect& win);
bool underMousePlacement(Rect& win);
inline void setLastFocusedWindow(BlackboxWindow *w) { lastfocus = w; }
+ inline const BlackboxWindowList& getStackingList() const
+ { return stackingList; }
+
BlackboxWindow* getWindow(unsigned int index);
BlackboxWindow* getNextWindowInList(BlackboxWindow *w);
BlackboxWindow* getPrevWindowInList(BlackboxWindow *w);
BlackboxWindow* getTopWindowOnStack(void) const;
void sendWindowList(Netizen &n);
void focusFallback(const BlackboxWindow *old_window);
+ void setFocused(const BlackboxWindow *w, bool focused);
bool isCurrent(void) const;
bool isLastWindow(const BlackboxWindow* w) const;
- void addWindow(BlackboxWindow *w, bool place = False);
- void removeWindow(BlackboxWindow *w);
+ void addWindow(BlackboxWindow *w, bool place = False, bool sticky = False);
+ void removeWindow(BlackboxWindow *w, bool sticky = False);
unsigned int getCount(void) const;
void appendStackOrder(BlackboxWindowList &stack_order) const;