I am using KDE 6 in Debian Testing.
I have un Virtual Desktop with Thunderbird but when I am using other virtual desktop and I recibe a thunderbird email the focus go to this Virtual Desktop and this is very annoying
type “focus” onto the desktop and go to the settings page in the search result
there you can set the focus stealing parameter to be stronger which might prevent this behavior, but there should be some notification setting in t-bird you can change as well (i don’t use it, so not familiar).
You can also check if it is possible to configure Thunderbird to use system notifications.
Those don’t get focus or cause virtual desktop switches.
Given that most platforms which Thunderbird runs on have native notification systems (Windows, macOS, Android, most Linux desktops), it is likely that it has its own application specific notifications only as a fallback when running somewhere that does not.
Emails under Thunderbird use system notifications, it’s only Calendar under Firefox that uses application specific notifications.
The application specific Calendar notifications aren’t a problem under X11, as you can configure the notification as it’s own window with it’s own rules - Just set it to appear on every virtual desktop.
Such functionality isn’t possible under Wayland, so the notification opens on the same virtual desktop as the parent application and steals focus. Just another strike to add to the laundry list of functionality present under X11 that’s missing under Wayland.
Since the issue is about notifications for emails, switching to native/system notifications seemed the best way to solve this.
It is great that window managers such as KWin can provide workarounds but ideally the application would not require these to work in setups with more than one virtual desktop.
Either by using system notifications or raising its own window such that it does not “steal” focus from elsewhere.
Did KWin remove window rules on Wayland?
Did you read my quote? Emails under Thunderbird already use native/system notifications, it’s only Calendar that doesn’t.
And, as stated, emails under Thunderbird use system/native notifications.
For nested windows they did, you can only create rules for the parent window - Which would be Thunderbird. Therefore, you cannot have calendar notifications appear under every virtual desktop, which would prevent the nested window (calendar notification) from stealing focus away from the current virtual desktop (assuming the current virtual desktop isn’t the one currently running Thunderbird).
Yes.
Did you read the original question?
Here is the relevant part:
Any hint where that says “Calendar”?
That is very surprising.
I guess I will have to start a Wayland session sometime this weekend to verify that claim.
Let’s hope Mozilla has people involved with the new notification portal specification so that such hacks are no longer even needed.
I ended up disabling notifications from Thunderbird. Now the focus doesn’t go away when a new email arrives. But it doesn’t notify me when new emails arrive either. Not a very elegant solution.
Thunderbird uses system notifications regarding email, hence my point. I mentioned Calendar under Thunderbird, as calendar is the only aspect of Thunderbird that uses Thunderbird’s own notification pop-ups that steal focus under Wayland for reasons mentioned.
I’m not too sure how I can be any clearer here? Perhaps a screenshot would help: