Common functions for Xorg input drivers
