x11: fix crash

Broken by previous commit. Oops.