all repos — fluxbox @ f758ee4bbd4785c65c838a12507e3f6f5f63d210

custom fork of the fluxbox windowmanager

proper fix for [ 561602 ] Problem using ToggleDecor in terminals.
old_decoration wasn't initialised.
rathnor rathnor
commit

f758ee4bbd4785c65c838a12507e3f6f5f63d210

parent

e4c680e4cf73bc6da6435148265e8668b8de7dee

1 files changed, 7 insertions(+), 3 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.106 2002/12/01 13:42:03 rathnor Exp $ +// $Id: Window.cc,v 1.107 2002/12/09 14:17:50 rathnor Exp $ #include "Window.hh"

@@ -71,7 +71,7 @@ timer(this),

display(0), lastButtonPressTime(0), m_windowmenu(0), - m_layer(LAYER_NORMAL), + m_layer(LAYER_NORMAL), old_decoration(DECOR_NORMAL), tab(0) { lastFocusTime.tv_sec = lastFocusTime.tv_usec = 0;

@@ -3177,7 +3177,11 @@ if (decorations.enabled) { //remove decorations

setDecoration(DECOR_NONE); decorations.enabled = false; } else { //revert back to old decoration - setDecoration(old_decoration); + if (old_decoration == DECOR_NONE) { // make sure something happens + setDecoration(DECOR_NORMAL); + } else { + setDecoration(old_decoration); + } decorations.enabled = true; } }