The frame size includes window manager chrome, so size the canvas.