It may be that Geany/Scintilla just calls things in a different order to others (but still legal for a real GTK/X11).
You mentioned the problem seems to be the autocomplete suggestions popup, thats a custom popup generated by Scintilla and it might do the calls to create it in a slightly different order to another GUI. And its also resized, which may confuse things.