Bug 412046 - Task switcher starts from second task when active screen is changed by mouse moves
Summary: Task switcher starts from second task when active screen is changed by mouse ...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: tabbox (other bugs)
Version First Reported In: 5.16.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-19 01:08 UTC by Frederick Zhang
Modified: 2021-01-03 09:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
screenshot - scaled from 3840 to 2500 for size compliance (3.20 MB, image/png)
2021-01-03 08:02 UTC, Mathieu Jobin
Details

Note You need to log in before you can comment on or make changes to this bug.
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.