Implement CursorPositionChanged event for X11