From 635af8c38bdb1ca47ae0b8274167d4e86100a40e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 5 Feb 2003 06:44:39 +0000 Subject: make sure windows aren't doing things they aren't allowed when their allowed actions changes. remaximize windows when their decorations are changed --- src/client.hh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/client.hh') diff --git a/src/client.hh b/src/client.hh index a9fe9427..c17431a5 100644 --- a/src/client.hh +++ b/src/client.hh @@ -443,9 +443,10 @@ private: be returned to normal state. @param savearea true to have the client's current size and position saved; otherwise, they are not. You should not save when mapping a - new window that is set to fullscreen. + new window that is set to fullscreen. This has no effect + when restoring a window from fullscreen. */ - void fullscreen(bool fs, bool savearea); + void fullscreen(bool fs, bool savearea = true); //! Maximize or unmaximize the client window /*! @@ -454,9 +455,10 @@ private: @param dir 0 to set both horz and vert, 1 to set horz, 2 to set vert. @param savearea true to have the client's current size and position saved; otherwise, they are not. You should not save when mapping a - new window that is set to fullscreen. + new window that is set to fullscreen. This has no effect + when unmaximizing a window. */ - void maximize(bool max, int dir, bool savearea); + void maximize(bool max, int dir, bool savearea = true); //! Internal version of the Client::move function /*! -- cgit v1.2.3