I've been trying (for a few days) to find out if it's possible to implement placing a popover near where the user is typing, which works as a daemon and is able to detect the position of the caret in any third-party GTK3 app.
I've got the impression that it's possible to get the current active window in GDK, and then get the currently active GTK widget (from which I would hope to get coordinates somehow).
Is this possibile at all? I've also experimenting with other methods to figure out the position where the user is typing (x/y position of the caret), but they all have some problems.
Any idea?