Ah yes, the code I am working on is a few commits ahead of the last release. You could just remove that code. It’s to do with keeping focus visibility for accessible apps.
Hopefully, this will all be fixed in the 6.0.5 release. I have pull requests in for each of those tickets.