X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fscreen.hh;fp=src%2Fscreen.hh;h=e8306933042c5e38855a8c039c1ddff05dac2369;hb=265cf6c9478860336816570a141198d9257a27a1;hp=adccf180128af8d7ef83942a0da1648ec97e1e54;hpb=f305e7f18dd9745e99518da7ca70183c3084a991;p=chaz%2Fopenbox diff --git a/src/screen.hh b/src/screen.hh index adccf180..e8306933 100644 --- a/src/screen.hh +++ b/src/screen.hh @@ -95,8 +95,12 @@ private: //! The names of all desktops otk::Property::StringVect _desktop_names; + //! The layout of the desktops as specified by an EWMH compliant pager DesktopLayout _layout; + //! True when the window manager is in 'showing desktop' mode + bool _showing_desktop; + //! Calculate the Screen::_area member void calcArea(); //! Set the list of supported NETWM atoms on the root window @@ -139,6 +143,10 @@ private: */ void changeNumDesktops(unsigned int num); + //! Shows and focuses the desktop and hides all the client windows, or + //! returns to the normal state, showing client windows. + void showDesktop(bool show); + public: #ifndef SWIG //! Constructs a new Screen object @@ -161,6 +169,8 @@ public: inline unsigned int desktop() const { return _desktop; } //! Returns the number of desktops inline unsigned int numDesktops() const { return _num_desktops; } + //! When true, the desktop is being shown and all clients are hidden + inline bool showingDesktop() const { return _showing_desktop; } //! Returns the area of the screen not reserved by applications' Struts /*!