fix cursor setting to only set if currently visible
fix cursor setting to only set if currently visible

this should fix D715

FlorentRevest/Elementary,FlorentRevest/Elementary,rvandegrift/elementary,FlorentRevest/Elementary,rvandegrift/elementary,tasn/elementary,FlorentRevest/Elementary,tasn/elementary,rvandegrift/elementary,tasn/elementary,tasn/elementary,tasn/elementary,rvandegrift/elementary