shell: Allow ending of popup grabs from within the starting of the grab
shell: Allow ending of popup grabs from within the starting of the grab

Calling weston_pointer_start_grab can lead to a code path (in this case
when the shell surface is unresponsive) that can try and remove the
popup grab to setup a shell grab.

Ending the popup grab requires removing the surface from the grab's
surfaces list - however the grab had not yet been fully setup so the
grabbed surface was not yet in this list.

With this change we ensure we add the surface to the list before setting
up the pointer grab.

https://bugs.freedesktop.org/show_bug.cgi?id=66167

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