X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FWorkspace.hh;h=df0411e130645cc221360cbf06e0359748f6d656;hb=72a2e98738d87b89620bafd15141690aa4be8fab;hp=7934308d2f9c42a7345a0ece8fd585ee2e2a828f;hpb=270981e6d7b2c59efebb1ceb7cbb7c119b280df4;p=chaz%2Fopenbox diff --git a/src/Workspace.hh b/src/Workspace.hh index 7934308d..df0411e1 100644 --- a/src/Workspace.hh +++ b/src/Workspace.hh @@ -65,6 +65,9 @@ private: void lowerTransients(const BlackboxWindow * const win, StackVector::iterator &stack); + typedef std::vector rectList; + rectList calcSpace(const Rect &win, const rectList &spaces) const; + void placeWindow(BlackboxWindow *win); bool cascadePlacement(Rect& win, const int offset); bool smartPlacement(Rect& win); @@ -85,18 +88,22 @@ public: 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;