root: Fix compilation error with X11 backend

My follow up on #853