Attempt to handle activeation/deactivation of windows