3-14152898 left a comment (geany/geany-plugins#1370) Finally I changed my mind and used another technique for determining if/how Geany keeps track of focus. I've investigated further and came up with [this patch](https://github.com/user-attachments/files/21940128/addons-ao_wrapwords.c.patch.zip). I've tested it against Geany 2.0 on my machine and the fix is indeed effective: selection is only enclosed **iif** the document window has the focus, not otherwise. It was simpler than I anticipated in the end. I hope this is done the right way though and I missed nothing critical.
Have a nice day/week-end. π -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/issues/1370#issuecomment-3214682930 You are receiving this because you are subscribed to this thread. Message ID: <geany/geany-plugins/issues/1370/3214682...@github.com>