Moved the set desktop resolution stuff into a separate event.