Fix for titlebar visibility while not toggled in maximized mode.
Added call to set hidden style when going from one activated mode to
another, so that the toolbars don't stay open when switching modes.