Bug 448373 - Notifications steal focus
Summary: Notifications steal focus
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: git master
Platform: Other Linux
: VHI major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2022-01-13 16:32 UTC by Nate Graham
Modified: 2022-01-13 17:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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