Add initial hotkey support in glinject

Hook onto XNextEvent and communicate back to the main application. Also
support very initial and primitve resolution at the main application
side.