Bug 412046

Summary: Task switcher starts from second task when active screen is changed by mouse moves
Product: [Plasma] kwin Reporter: Frederick Zhang <frederick888>
Component: tabboxAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: frederick888, opensource
Priority: NOR    
Version First Reported In: 5.16.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot - scaled from 3840 to 2500 for size compliance

Description Frederick Zhang 2019-09-19 01:08:09 UTC
SUMMARY
Task switcher starts from second task when active screen is changed by mouse moves instead of clicks.

As a result, the third task is brought to front by Alt-Tab while it should have switched between the first 2 tasks.

STEPS TO REPRODUCE
1. Enable 'Active screen follows mouse' in System Settings -> Window Management -> Window Behaviour
2. Set Task Switcher filters in System Settings -> Window Management -> Task Switcher to:
    Virtual desktops => Current desktop
    Activities => Current activity
    Screens => Current screen
    Minimisation => Visible windows (this one shouldn't matter tho)
3. Set up 2 or more screens
4. Open at least 3 windows in 1st screen, another in 2nd
5. Click to focus a window in 1st screen
6. Click to focus a window in 2nd screen
7. Without any clicks, move mouse cursor from 2nd screen to 1st
8. Alt-Tab (optionally keep Alt pressed down to see visualisation)

OBSERVED RESULT
3rd window in 1st screen is brought to front.

EXPECTED RESULT
2nd window in 1st screen is brought to front.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.13.1
Kernel Version: 5.2.14-arch2-1-ARCH
OS Type: 64-bit
Comment 1 Mathieu Jobin 2021-01-03 08:02:06 UTC
Created attachment 134494 [details]
screenshot - scaled from 3840 to 2500 for size compliance

Focus follow mouse is what I have been using Since KDE 2.x and probably before... 

I cannot reproduce this problem

currently, on Kubuntu 20.10, plasma 5.19.5
Comment 2 Frederick Zhang 2021-01-03 09:02:33 UTC
I can no longer reproduce it, either.