Revert "Added basic functionality for fullscreen, escape and borderless window"

This reverts commit fe140c77e52c60543ba402302f147308d377dd0d, reversing
changes made to cc04204d45055df86fadefb1cd141defedc44a42.