Reverted the work done done so far on fixing the issue showing/hiding docked windows (#344) [ci skip].