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

--- Comment #9 from k...@er42.org ---
(In reply to Nicolas Fella from comment #5)
> I think I see the problem.
> 
> On X11 when an application is activated it sends a startup id. This startup
> ID optionally contains a desktop number that hints to the window manager
> where the app should be started on. For apps started from Plasma this will
> be the current desktop:
> https://invent.kde.org/frameworks/kio/-/blob/master/src/gui/kprocessrunner.
> cpp#L277
> 
> When KWin receives this id it checks the desktop number and falls back to
> the current desktop. Then it sends the window to that desktop:
> https://invent.kde.org/plasma/kwin/-/blob/master/src/activation.cpp#L775
> 
> Only later in the code we get to the point where we check the desktop switch
> behavior setting:
> https://invent.kde.org/plasma/kwin/-/blob/master/src/activation.cpp#L290. At
> this point the window is already on the current desktop, so the whole thing
> doesn't trigger at all.
> 
> The first half of this only happens on X11, which explains why it works on
> Wayland

Thank you for this quick find!

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

Reply via email to