Make use of sharedX

Signed-off-by: Axel Davy <axel.davy@ens.fr>