fix for_window not working with urgency flags
