Description: I usually keep LibreOffice open with several documents, each in its maximized window; I switch between documents using the "Window" drop-down menu. Sometimes, not always but often, it happens to me that I switch to a different document, then I click on the text to start typing, and immediately LibreOffice brings me back to the previous document, with the cursor flashing and ready to type on that document. See screen recording here - it does not happen at the first window switch, but it happens at the second, as soon as I click on the text: https://bertola.eu/file/x/libreoffice-ui-bug.mov It seems not to happen if, after switching windows, I click on the top title/menu bar first, before clicking on the text. This started happening after, a couple of weeks ago, I upgraded my MacBook Pro to MacOSX 14 (now running 14.2.1). Upgrading LibreOffice to the latest version (now running 7.6.4.1, Italian menus) did not fix this. Steps to Reproduce: 1. Open multiple documents, bring one into focus 2. Click on the text 3. Use the Window drop-down menu to switch to another one's window 4. Click on the text again (it happens sometimes) Actual Results: A window switch happens and I get the cursor flashing and ready to type in the document I was viewing before (at step 2) Expected Results: I get the cursor flashing and ready to type in the document I am viewing then (at step 3) Reproducible: Sometimes User Profile Reset: Yes Additional Info: Version: 7.6.4.1 (X86_64) / LibreOffice Community Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1 CPU threads: 10; OS: Mac OS X 14.2.1; UI render: Skia/Metal; VCL: osx Locale: it-IT (it_IT.UTF-8); UI: it-IT Calc: threaded