]> Dogcows Code - chaz/openbox/blobdiff - src/screen.hh
lameass comment from the past
[chaz/openbox] / src / screen.hh
index 91cf65c3b949784d2f4d40a5e1b2f65ce703cb63..cb078082a28be8ef906389efa9700c278ecaf0ba 100644 (file)
@@ -83,8 +83,8 @@ private:
   //! Area usable for placement etc (total - struts)
   otk::Rect _area;
 
-  //! Areas of the screen reserved by applications
-  StrutList _struts;
+  //! Combined strut from all of the clients' struts
+  otk::Strut _strut;
 
   //!  An offscreen window which gets focus when nothing else has it
   Window _focuswindow;
@@ -142,10 +142,11 @@ public:
   //!  An offscreen window which gets focus when nothing else has it
   inline Window focuswindow() const { return _focuswindow; }
 
-  //! Adds a window's strut to the screen's list of reserved spaces
-  void addStrut(otk::Strut *strut);
-  //! Removes a window's strut from the screen's list of reserved spaces
-  void removeStrut(otk::Strut *strut);
+  //! Update's the screen's combined strut of all the clients.
+  /*!
+    Clients should call this whenever they change their strut.
+  */
+  void updateStrut();
 
   //! Manage any pre-existing windows on the screen
   void manageExisting();
This page took 0.024679 seconds and 4 git commands to generate.