Implement clipping

The top status bar and bottom button bar still don’t render for some
reason.