From 5be5edc1e5760672f11517b8b4c447346157c175 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Thu, 6 May 2010 20:54:44 +0200 Subject: bugfix: when maximizing a shaded window, unshade it before --- src/Window.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Window.cc b/src/Window.cc index 9df48a2..56cbd96 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -1500,6 +1500,12 @@ void FluxboxWindow::setMaximizedState(int type) { if (isResizing()) stopResizing(); + if (isShaded()) { + // do not call ::shade() here to trigger frame().applyState() and + // stateSig().notfiy() only once + m_state.shaded = false; + } + m_state.maximized = type; frame().applyState(); -- cgit v0.11.2