xwm: Don't clear the selection if it has no text type available
xwm: Don't clear the selection if it has no text type available

weston maintains a copy of the most recently selected "thing" - it picks
the first available type when it copies, and saves that one only.

When an application quits weston will make the saved selection active.

When xwm sees the selection set it will check if any of the offered types
are text.  If no text type is offered it will clear the selection.

weston then interprets this in the same way as an application exiting and
causing the selection to be unset, and we get caught in a live lock with
both weston and xwayland consuming as much cpu as they can.

The simple fix is to just remove the test for text presence.

Signed-off-by: Derek Foreman <2f97e0f0bc172406aab8ccd42dab54c95bab8759@osg.samsung.com>
Reviewed-by: Carlos Garnacho <8aa797d77d86809a7bc4a8544e3c327451cf6b4f@gnome.org>

Fantu/compositor-spice,giucam/weston,sir-murray/weston,Gnurou/weston,krezovic/weston,sir-murray/weston,krezovic/weston,Gnurou/weston,Fantu/compositor-spice,Fantu/compositor-spice,giucam/weston