Component (window) listener is now functioning correctly.