From c8eeaea88ff11a30110de18a1ec32a31942bbd38 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 7 May 2002 13:50:34 +0000 Subject: fixed bug [ 552723 ] removing decorations while shaded in toggleDecor --- src/Window.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Window.cc b/src/Window.cc index 2fcc31b..d774eed 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.49 2002/05/07 13:31:11 fluxgen Exp $ +// $Id: Window.cc,v 1.50 2002/05/07 13:50:34 fluxgen Exp $ #include "Window.hh" @@ -3510,6 +3510,10 @@ void FluxboxWindow::setDecoration(Decoration decoration) { void FluxboxWindow::toggleDecoration() { static bool decor = false; + //don't toggle decor if the window is shaded + if (isShaded()) + return; + if (!decor) { setDecoration(DECOR_NONE); decor = true; -- cgit v0.11.2