Fix resetting profile when changing desktop on Unity
We should use homogenous functions for checking if the screen has changed.