Summary: | In a Wayland session, focus-follows-mouse doesn't work when moving from Xwayland to native Wayland application | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Alex Wauck <waucka> |
Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bharadwaj.raju777, david001, erin-kde, groot, kada.zoli, meven29, nate |
Priority: | NOR | Keywords: | wayland |
Version: | 5.12.5 | Flags: | mgraesslin:
Wayland+
mgraesslin: X11- |
Target Milestone: | --- | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/073b6efc144d8aabef2eea8f64b84ffdca87b6b5 | Version Fixed In: | 5.22.0 |
Description
Alex Wauck
2018-06-28 17:24:20 UTC
The original report here is overly long and hard to reproduce. Here's a simpler more general description of the problem: 1. Ensure focus-follows-mouse is enabled 2. Open any X11/Xwayland application (such as Firefox) 3. Open any native Wayland application (such as Konsole) 4. Place the windows next to each other so that both are visible 5. Click on Konsole to ensure focus 6. Move mouse cursor to Firefox → Focus will switch to Firefox 7. Move mouse cursor back to Konsole → Focus will stay on Firefox The behaviour in step 6 is OK, the one in step 7 is not. (And yes, I also tested this on multi-monitor and there is no difference in behaviour as compared to having the windows on the same screen.) Testing Alexander Schlarb's scenario: - enable focus-follows-mouse - start konsole - start xterm and place it beside konsole - click on konsole to give it focus - move mouse to xterm - .. and back to konsole Repeat the last two steps several times. I often get 3 or 4 times that the focus does change from one window to the other .. and then it stops switching, for maybe another 3 or 4 tries, and then it resumes switching. The windows do not have to be side-by-side, the xterm can overlap konsole too. It **might** be related to window decorations (shadows?) and changing cursors during the switch: if I move the mouse cursor **slowly** (and the mouse cursor changes to resize as it crosses the edge of the xterm, into konsole), the focus **rarely**changes. If I move the mouse cursor **quickly** into the other window, I've got a good chance to move the focus over. I can also recreate this with two konsole native-Wayland windows (at least, both started via `konsole -platform wayland`). Moving the mouse slowly from one to the other does not move focus, while moving the mouse quickly, does. Setting window borders to "tiny" makes it more likely that focus will change to the new window, since you are less (?) likely to hit the spot where the cursor changes. *** Bug 432010 has been marked as a duplicate of this bug. *** This bug should be fixed in git master. Please reopen this bug report if the issue is still present. *** Bug 434180 has been marked as a duplicate of this bug. *** |