Bug 350732

Summary: windows, activated from krunner, doesn't get focus
Product: [Plasma] krunner Reporter: Vytautas <vylu>
Component: windowsAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED WORKSFORME    
Severity: normal CC: bad63r, bennorton, filippo.trimoldi, haakondr, kdedev, kishore96, p.stephenwille, radu.margineanu, raul.cheleguini
Priority: NOR    
Version First Reported In: 5.5.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Vytautas 2015-07-29 07:04:00 UTC
when activating running window from krunner, found window goes on top, but doesn't get focus.

On kde 4 found windows got focus -- this is better behavior.
Comment 1 Tom 2015-07-29 21:05:16 UTC
Well here krunner working just fine. When activating running window from krunner, window is focused.
I have qt version 5.5.0. and plasma 5.3.2.Probably debian is little behind with packages than Arch(system that i use) so in the next update you can expect fix for that?
But maybe it is bug but I can't tell ,because you didn't mention your qt version.
Comment 2 Vytautas 2015-07-30 06:12:46 UTC
It's good to hear krunner works correctly on your system. On my system qt version is  5.4.2. Hopefully new version will fix this.
Comment 3 Vytautas 2016-01-22 08:49:31 UTC
Still doesn't work. Tested: 
 kubuntu with plasma 5.5.3 and qt 5.5.1 (new installation). 
opensuse live cd (plasma 5.5.2, qt 5.5.1). 

Do we talk about the same bug? To reproduce: 
1. Press Alt-f2 and type "konsole". Choose "Applications  Konsole". Press Enter to launch it. 
2. new Konsole is launched, it has focus. 
3. Press Alt-f2 and type "kinfocenter". Choose "Applications KInfoCenter". Press Enter to launch it.
4. new KInfoCenter is launced, it has focus. 
5. Press Alt-f2 and type "konsole". Choose "Windows  linux: bash -- Konsole" (existing window). Press Enter to activate (don't use mouse in this step). 
6. Konsole window is moved on top, but focus is still on KInfoCenter. 


BTW. If activating item  "Windows linux: bash -- Konsole" on krunner search list with mouse, Konsole get focus. It doesn't get focus if activated with keyboard.
Comment 4 Kishore Gopalakrishnan 2016-12-20 02:51:15 UTC
https://bugs.kde.org/show_bug.cgi?id=370236 and https://bugs.kde.org/show_bug.cgi?id=372288 also talk about similar bugs.
Comment 5 HD 2017-02-24 20:09:04 UTC
f
Comment 6 Ben Norton 2017-04-11 19:07:32 UTC
I have this problem on Slackware Current, with plasma 5.9.3 and qt 5.7.1

It seems to actually be a Kwin bug, if I run with openbox-kde-session which runs all of kde but uses openbox instead of kwin, I get focus properly. It's possible its kwin with different hardware, so maybe why some don't see it, but I can reproduce it on my machine with 2 year old Radeon card and alson on a two year old intel nuc, with intel apu.
Comment 7 nullsteph 2019-08-03 16:46:46 UTC
Same here on Kubuntu.  It seems multiple monitors and multiple  Panel/taskbars boink the focusing mechanism.  It works much better with 3 monitors when there's only one Panel.
Comment 8 Alexander Lohnau 2020-10-11 19:10:53 UTC
*** Bug 372288 has been marked as a duplicate of this bug. ***
Comment 9 Alexander Lohnau 2020-10-11 19:11:31 UTC
*** Bug 370236 has been marked as a duplicate of this bug. ***
Comment 10 Raul 2021-06-23 14:58:43 UTC
Just wanted to leave a workaround here for readers, AndydeCleyre mentioned in reddit and it seems to work: try to set System Settings > Window Behavior > Focus stealing prevention: None.
Comment 11 TraceyC 2025-04-04 21:04:31 UTC
I'm sorry we weren't able to get to this yet. Is this still a problem for anyone with KDE Plasma 6.3.4 or later?
Comment 12 Bug Janitor Service 2025-04-19 03:47:08 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 13 Bug Janitor Service 2025-05-04 03:47:24 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.