We were trying to swap_buffers while the xdg_surface had not been configured yet, which is a protocol error.