window: Set window type as it changes, not on every attach
window: Set window type as it changes, not on every attach

It was always a bit sloppy, and the new fullscreen request doesn't work
that way.

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