removed X Window parameters to cross-platform functions