[x11] fixes issue #154, inconsistent function declaration.