fn reopen_handle(gpu: &mut GpuCapture) -> Result<(), String>Expand description
Replace the client handle, for the one failure the API offers no other way back from: the X server the handle was opened on is gone. The capture session on it is created again by the loop’s geometry step, against the root the new handle reports.
The encoder, its CUDA context, and the frames already delivered all survive; only the driver objects are rebuilt, in the order that keeps the encoder from holding a registration of memory the outgoing session owns.