xwm: don't set inactive surfaces as top level
xwm: don't set inactive surfaces as top level

Some X clients create popup or tooltips windows as top level, without
setting them as override redirect or as transient. Since we don't want
to take the focus away from a surface when one of its popup is opened,
check the _NET_WM_WINDOW_TYPE of the X surfaces being mapped and set
them as inactive if it is one of some types.

Reviewed-by: Bryce Harrington <bdb14cfc1ab8d24e13de84adc40b41ae60c13bd1@osg.samsung.com>

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