New dock event functions
Changing cursor style according to current gui state