Just built KWin from source today and now notifications steal focus when they appear. If I am in the middle of typing something when a notification appears, keyboard input is lost because it suddenly gets sent to the notification, which can't handle it. Once the notification times out or is closed, focus returns to the app. This happens for all apps tested, including GTK and Electron apps, so it does not seem to be an issue in any particular UI toolkit's stack.
Git commit b882b34d7b55975f679133ef86cfd12869e8bba5 by David Edmundson. Committed on 13/01/2022 at 17:03. Pushed by davidedmundson into branch 'master'. Always sync the setPanelBehavior to wayland The previous patch moved some code that reapplied setRole in a way that caused issues. M +8 -19 src/plasmaquick/dialog.cpp https://invent.kde.org/frameworks/plasma-framework/commit/b882b34d7b55975f679133ef86cfd12869e8bba5