More clear way of setting cursor shape