rsz, я не думаю, что в данном случае, это правильное решение. Человек обрабатывает события приходящие.
Key-Real, события FocusIn и FocusOut.
Если есть желание, посмотрите процедуру в ZenGL - app_ProcessMessages. Модуль zgl_application.
Вообще довольно странно, что я нашёл больше информации на русском языке, чем на английском. Andru описывал на своём сайте создание низкоуровневых приложений для Linux.
ссылка, описание на русском google translate:
rsz, I do not think that in this case, this is the correct solution. The person processes incoming events.
Key-Real, FocusIn and FocusOut events.
If you want, look at the procedure in ZenGL - app_ProcessMessages. Zgl_application module.
In general, it's rather strange that I found more information in Russian than in English. Andru described on his website how to create low-level applications for Linux.
link, description in Russian