https://bugs.kde.org/show_bug.cgi?id=464099

--- Comment #4 from Nicolas Fella <nicolas.fe...@gmx.de> ---
I can confirm that activation from notifications is flaky. Opening links works
perfectly though.

I think I understand what's going on with notifications:
When clicking the notification Plasma requests a token and sends that to
Neochat. Then the notification window closes and the active window changes from
the notification window to whatever window you have open (*). KWin reacts to
the active window changing
(https://invent.kde.org/plasma/kwin/-/blob/master/src/xdgactivationv1.cpp#L58)
and, after performing some checks, clears the currently active token. Then
Neochat uses the received token to activate itself, but at that point the token
KWin expects was already cleared and KWin denies the activation. 

(*) That part seems racy and doesn't always happen. Adding a QThread::sleep(1)
in
https://invent.kde.org/network/neochat/-/blob/master/src/windowcontroller.cpp#L43
makes it easier to reproduce

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to