diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-10 16:56:03 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-10 16:56:03 +0000 |
| commit | 265cf6c9478860336816570a141198d9257a27a1 (patch) | |
| tree | 0b41108bd976adc4fb6ce0bc64f7e8c82d8798d7 /src/screen.hh | |
| parent | f305e7f18dd9745e99518da7ca70183c3084a991 (diff) | |
show desktop mode works!
Diffstat (limited to 'src/screen.hh')
| -rw-r--r-- | src/screen.hh | 10 |
1 files changed, 10 insertions, 0 deletions
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 /*! |
