Applications can't set selections

This is a bug affecting 16.10 and later versions that's likely unrelated to the other issue you're experiencing: