Fix deprecation warning for XKeycodeToKeysum

revert commit #b551142 that muted using deprecation Xlib function