Adding events (keyboard, mouse) handling for Linux + X11.