Bug 443630 - Clicking the "new mail notification" doesn't bring Thunderbird focused
Summary: Clicking the "new mail notification" doesn't bring Thunderbird focused
Status: VERIFIED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (other bugs)
Version First Reported In: 5.22.5
Platform: Manjaro Linux
: NOR normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL: https://bugzilla.mozilla.org/show_bug...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-12 08:40 UTC by Timo
Modified: 2022-01-13 09:25 UTC (History)
3 users (show)

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 Timo 2021-10-12 08:40:41 UTC
SUMMARY
Thunderbird won't receive focus when clicking "new mail" notification.

STEPS TO REPRODUCE
1. Open Thunderbird
2. Work on some other application, i.e. use Firefox so Firefox window has focus
3. Click "new mail" notification when an email arrives

OBSERVED RESULT
Clicking the new mail notification doesn't bring Thunderbird focused.

EXPECTED RESULT
Clicking the notification should bring Thunderbird window focused (visible).

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Manjaro KDE
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.10.70-1-MANJARO
OS Type: 64-bit

ADDITIONAL INFORMATION
This bug has been present for a while now. I can recall new mail notification worked "a month or two ago" (my bad I don't have exact software versions/dates when this bug first appeared).

One additional note: If you open Thunderbird and then minimize Thunderbird window, but after that _do not_ click anywhere and just plain wait for a new email notification and after receiving one you click the notification, Thunderbird is focused.

So this bug appears to trigger if some other window has received focus before the new mail notification arrives.
Comment 1 Nate Graham 2021-10-18 03:04:43 UTC
Wayland or X11?
Comment 2 Timo 2021-10-18 12:36:37 UTC
X11.

Thunderbird version is 91.2.0.
Comment 3 Nate Graham 2021-10-25 18:19:31 UTC
Can reproduce on X11 (on Wayland it's already known and expected to be broken for now). This means that KWin is blocking the activation because it thinks it's focus stealing, because the app isn't passing along its ID from the notification properly. You'll need to report this to the Thunderbird developers.
Comment 4 Timo 2021-10-26 07:35:07 UTC
(In reply to Nate Graham from comment #3)
> Can reproduce on X11 (on Wayland it's already known and expected to be
> broken for now). This means that KWin is blocking the activation because it
> thinks it's focus stealing, because the app isn't passing along its ID from
> the notification properly. You'll need to report this to the Thunderbird
> developers.

Thanks for the information. I created a new bug report at:
https://bugzilla.mozilla.org/show_bug.cgi?id=1737753
Comment 5 Nate Graham 2021-10-26 16:47:00 UTC
Thanks!
Comment 6 Timo 2022-01-13 09:24:59 UTC
Mozilla recognizez the problem, but it's been almost 3 months now and the bug still exists.

I was wondering if anybody from KDE could offer a helping hand to Mozilla to fix this bug? My understanding is that it is pretty small change which is needed here:

> This means that KWin is blocking the activation because it thinks it's focus stealing, because the app isn't passing along its ID from the notification properly