X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2FWorkspace.hh;h=09dc277908c93cceb8a642192b3c57e850dfacf1;hb=54c495c83cf5595db4c6a367386d3ef35bc94fca;hp=652e8cef574af6bbb5b38456b08a34f3abde7c22;hpb=8794d357e67abddf9fda9db77b235e294d0ec590;p=chaz%2Fopenbox diff --git a/src/Workspace.hh b/src/Workspace.hh index 652e8cef..09dc2779 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; @@ -64,6 +65,7 @@ private: 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); public: Workspace(BScreen *scrn, unsigned int i = 0); @@ -85,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); @@ -99,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); };