Bug 434180 - Focus follows mouse on Wayland does not work, even between native Wayland apps (Focus under mouse works)
Summary: Focus follows mouse on Wayland does not work, even between native Wayland app...
Status: RESOLVED DUPLICATE of bug 395970
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.21.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2021-03-09 10:01 UTC by Bharadwaj Raju
Modified: 2021-05-05 16:34 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screen recording of two native Wayland apps (System Settings and Dolphin). Mouse not visible sometimes. (1.25 MB, video/mp4)
2021-03-09 10:32 UTC, Bharadwaj Raju
Details
Better screen recording. Running kwin_wayland under X11 as client. (1.61 MB, video/mp4)
2021-03-14 13:21 UTC, Bharadwaj Raju
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bharadwaj Raju 2021-03-09 10:01:57 UTC
SUMMARY
Focus follows mouse on Wayland, between native Wayland apps (System Settings and Dolphin, for example) often does not transfer focus. Focus under/strictly under mouse works.

STEPS TO REPRODUCE
1. System Settings > Window Management > Focus Follows Mouse
2. Open two native Wayland apps
3. Try to switch focus between them using hover

OBSERVED RESULT
Focus often does not switch. Screen recording attached (recorded using WebRTC, the mouse is not visible sometimes, but we can see mouse hovers over Dolphin elements without switching focus, and vice versa with System Settings).

EXPECTED RESULT
Focus should switch.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.21.1
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Config files: tested on separate user, ~/.config was completely removed before testing.
Problem occurred even on 5.20.
Works on X11.
Comment 1 Bharadwaj Raju 2021-03-09 10:32:19 UTC
Created attachment 136520 [details]
Screen recording of two native Wayland apps (System Settings and Dolphin). Mouse not visible sometimes.
Comment 2 Bharadwaj Raju 2021-03-14 13:21:58 UTC
Created attachment 136663 [details]
Better screen recording. Running kwin_wayland under X11 as client.

By running kwin_wayland as an X11 client and running QT_QPA_PLATFORM=wayland kate, I managed to reproduce the bug like this and got a much better screen recording (mouse visible this time).
Comment 3 Bharadwaj Raju 2021-05-05 16:34:27 UTC

*** This bug has been marked as a duplicate of bug 395970 ***