user: Make sure the desktop window exists before calling monitor functions.