Keyboard lag when using GObject.idle_add (Windows only)
We are currently porting an application to Python3/GTK3 and experience that once we add a callback function using GObject.idle_add, we can choose between full CPU usage (when we regularly ask a queue for emptyness) or a very unresponsive keyboard (when we add a time.sleep(0.1) after every call to the queue). We know that polling is not a preferred way to implement such things but it used to work with Python2/GTK2 and even with Python 3.4 and the pygobject build from here: https://sourceforge.net/p/pygobjectwin32 (GTK 3.18). All the builds from here: https://github.com/wingtk/gvsbuild and also the msys version show the buggy behavior (Python 3.6 and GTK 3.22 or 3.24). Our ticket concerning this is here: https://github.com/texttest/texttest/issues/8 with code here: https://github.com/texttest/texttest/blob/python3/texttestlib/default/gtkgui/controller.py#L89 and here: https://github.com/texttest/texttest/blob/python3/texttestlib/plugins.py#L561 Any ideas are welcome!