moving event processing func from vid_glx to in_x