screen: fix some annoying bugs by importing patches from ArchLinux
Merge pull request #392 from oxij/random-updates

screen: fix some annoying bugs by importing patches from ArchLinux