Bug 468043

Summary: KRunner doesn't focus correct window when switching to window on other virtual desktop.
Product: [Plasma] krunner Reporter: Will Chen <inbox>
Component: windowsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: alexander.lohnau, natalie_clarius, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Will Chen 2023-04-01 17:29:56 UTC
KDE

When using KRunner to switch to a window on a different virtual desktop, KRunner switches to that virtual desktop but does not focus the chosen window.


STEPS TO REPRODUCE
1. On one virtual desktop, open at least two distinct windows.
2. Remember which window has focus.
3. Switch to a different virtual desktop (which possibly has its own windows).
4. Press Alt+F2 to launch KRunner. Type the title of one of the non-focused windows you opened in Step 1. Select it.

OBSERVED RESULT

KRunner switches to the original virtual desktop, but the selected window does not gain focus.


EXPECTED RESULT

KRunner should switch to the original virtual desktop, and the selected window should gain focus.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: X
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8