https://bugs.kde.org/show_bug.cgi?id=455228
Bug ID: 455228 Summary: focus follows mouse thwarted by libreoffice Product: kwin Version: 5.24.4 Platform: Fedora RPMs OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: core Assignee: kwin-bugs-n...@kde.org Reporter: eric.bru...@lps.ens.fr Target Milestone: --- Created attachment 149671 --> https://bugs.kde.org/attachment.cgi?id=149671&action=edit A simple LibreOffice Calc demonstrating the problem I am running an uptodate fedora 35, with KDE and Xorg. kwin is configured with "focus follows mouse", and it usually works. However, a certain manipulation with libreoffice Calc can lock the focus on libreoffice Calc's window. In detail, one can specify a list of valid values for some cells in LibreOffice Calc. In the attached file BugFocus.ods file, the only valid valued for cell A1 are "emacs" and "vim". When clicking on cell A1, a down arrow appears on the right of the cell. When clicking on the arrow, a drop-down menu appears to choose one of these values. If one chooses a value (and don't click anywhere else), then the focus is locked to LibreOffice Calc. In particular, even after moving the cursor out of LibreOffice's windows, mouse scroll events and keyboard events are directed to LibreOffice. A mouse click event is first sent to LibreOffice, but breaks the lock and gives the focus to the window under the cursor. I tried all the possible settings for kwin's focus policy (in particular I tried "extreme focus stealing prevention"), but it doesn't help. I don't know what horrible thing LibreOffice is doing, but focus stealing prevention is kwin's job. -- You are receiving this mail because: You are watching all bug changes.