Bug 448373

Summary: Notifications steal focus
Product: [Plasma] kwin Reporter: Nate Graham <nate>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: major Keywords: regression
Priority: VHI    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2022-01-13 16:32:38 UTC
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.
Comment 1 David Edmundson 2022-01-13 17:03:43 UTC
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