Prevent app from restarting when display resolution changes (external displayy was plugged etc)