window: Fix crash in input_set_pointer_image when cursor is special
window: Fix crash in input_set_pointer_image when cursor is special

Certain circumstances may lead to the "force" clause in
input_set_pointer_image() being reached when the current cursor
is blank or unset.  These are special cursors that don't have
images, and they need to be handled differently than image cursors.

This patch puts the special cursor handling in its own function and calls
it from both places that need it.  Previously only the frame callback
handler did this correctly.

Signed-off-by: Derek Foreman <2f97e0f0bc172406aab8ccd42dab54c95bab8759@osg.samsung.com>
Reviewed-by: Pekka Paalanen <0f6ae7001e34c37b02fb2c1c2573ddf8f442136a@collabora.co.uk>

krezovic/weston,xorgy/weston,Fantu/compositor-spice,Fantu/compositor-spice,eyolfson/weston,mchalupa/weston,Tarnyko/weston-xdg_surface_present,eyolfson/weston,Fantu/compositor-spice,kwm81/weston,udoprog/weston,giucam/weston,giucam/weston,jonnylamb/weston,krezovic/weston,xorgy/weston,jonnylamb/weston,kwm81/weston,sir-murray/weston,udoprog/weston,Gnurou/weston,sir-murray/weston,mchalupa/weston,Tarnyko/weston-xdg_surface_present,Gnurou/weston