Done with fixing the issue showing/hiding docked windows (closes #344).