Add the layout `destroy` and `change` events. When a layout is destroyed, detach is from the wlr_cursor. When a layout is changed, warp the cursor to the closest layout boundary.