Applications lose focus when switching keyboard layouts

I put the cursor in the field, switch the layout, and the cursor is no longer in the field. This happens in any application. I recorded a video: https://streamable.com/t83wud

It starts after updating the extra/mutter package from 43.2-2 to 43.3-2. I have now rolled back the updates and the problem is gone.

How can I fix it?

image