Bug 495862

Summary: New windows shouldn't steal focus from an open Application Launcher
Product: [Plasma] kwin Reporter: Fernando M. Muniz <fernandommuniz>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED LATER    
Severity: wishlist CC: mikel5764, nate, noahadvs, postix, xaver.hugl
Priority: NOR    
Version First Reported In: 6.2.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
URL: https://invent.kde.org/plasma/kwin/-/issues/186
See Also: https://bugs.kde.org/show_bug.cgi?id=509025
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Fernando M. Muniz 2024-11-06 03:47:53 UTC
New windows shouldn't steal focus from an open Application Launcher, because it's very likely that the user is searching for something in particular and wouldn't want to be interrupted.
Comment 1 Nate Graham 2024-11-06 05:44:36 UTC
If we implemented what you're requesting in an unconditional manner, then if I used Application Launcher to launch an app, the app would appear below Application Launcher! Depending on the screen's resolution and scale, it might be covering up quite a lot of the window. That doesn't really make any sense.

In order to not be super annoying, we'd have to track windows that were opened by something *other* than Application Launcher. That might be possible. Let's move this to KWin to see what the KWin devs think.
Comment 2 Fernando M. Muniz 2024-11-06 06:09:11 UTC
(In reply to Nate Graham from comment #1)
> If we implemented what you're requesting in an unconditional manner, then if
> I used Application Launcher to launch an app, the app would appear below
> Application Launcher! Depending on the screen's resolution and scale, it
> might be covering up quite a lot of the window. That doesn't really make any
> sense.
> 
> In order to not be super annoying, we'd have to track windows that were
> opened by something *other* than Application Launcher. That might be
> possible. Let's move this to KWin to see what the KWin devs think.

Perhaps having it as an option disabled by default is the best approach.
Comment 3 Zamundaaa 2024-11-13 17:15:36 UTC
Once https://invent.kde.org/plasma/kwin/-/issues/186 is implemented, this will just work™
Comment 4 Fernando M. Muniz 2025-03-27 20:37:02 UTC
(In reply to Zamundaaa from comment #3)
> Once https://invent.kde.org/plasma/kwin/-/issues/186 is implemented, this
> will just work™

That's great. Some apps have loading screens, like GIMP. So I sometimes look at a part of the panel that expands, then the loaded app retracts.
Comment 5 Nate Graham 2025-09-16 20:43:19 UTC
Given that it's planned and being worked on as part of a larger project, there's no need to keep this open, as it will be difficult to track which exact part fixes it.

Once the whole project is complete, feel free to re-open if you find that the issue isn't resolved, though!