fix for not detecting new window when running as root