X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2FWorkspace.hh;h=18933accd6648903fa6fc995c6b04c4975a844f2;hb=e18ff901fc7236e3008266f0a09048e6905de724;hp=dadb0dd0c50638c2dd26c467e67058a72184e5b5;hpb=12fcb33bfaa03b3c6245d15bfb1809f7facc857f;p=chaz%2Fopenbox diff --git a/src/Workspace.hh b/src/Workspace.hh index dadb0dd0..18933acc 100644 --- a/src/Workspace.hh +++ b/src/Workspace.hh @@ -46,6 +46,7 @@ private: BScreen *screen; BlackboxWindow *lastfocus; Clientmenu *clientmenu; + XAtom *xatom; BlackboxWindowList stackingList, windowList; @@ -62,9 +63,9 @@ private: 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); + bool smartPlacement(Rect& win); + bool underMousePlacement(Rect& win); public: Workspace(BScreen *scrn, unsigned int i = 0); @@ -86,13 +87,15 @@ public: BlackboxWindow* getPrevWindowInList(BlackboxWindow *w); BlackboxWindow* getTopWindowOnStack(void) const; void sendWindowList(Netizen &n); + void focusFallback(const BlackboxWindow *old_window); bool isCurrent(void) const; 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 showAll(void); void hideAll(void); @@ -100,8 +103,8 @@ public: void raiseWindow(BlackboxWindow *w); void lowerWindow(BlackboxWindow *w); void reconfigure(void); - void updateFocusModel(void); void setCurrent(void); + void readName(); void setName(const std::string& new_name); };