-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Focus does not follow mouse when using tablet (among other misbehaviors) #4819
Comments
That's exactly what's going on in the background. The visual is reused, but all events are separate. Some of the issues you list are application bugs. The chromium one might be Xwayland, unsure. The CSD dragging one is probably a sway bug, though I'd have to invesitage. |
Thank you for your interest in the issue. Note that none of these issues happened in sway 1.2 (with basic tablet support), including the chromium issue. They are all unfortunate regressions that have been introduced along with the new "full tablet support" (pressure, etc) between 1.2 and 1.4. Back when opening this issue, I tried to add calls to |
I just ran into this issue too, with a Huion 420 on latest master. I've recorded a video of the focus issues (something about a picture being worth a thousand words): https://drive.google.com/open?id=1WO89fVGy1QRmfXA0STaLCeN_mqDt9PFE I can reproduce this behaviour with at least Wayland Firefox and It seems (this is in the recording) that moving through the "border" of a window slowly will always make the focus be passed correctly. If you quickly swipe past it, it seems often the focus is not switched. Also, sometimes Firefox just dies while clicking around with the pen (almost the same stacktrace as swaywm/wlroots#2062), without the having to unplug. Unsure if these issues are related, but thought it'd be worth mentioning in case they are.
Some more detail that might help narrow things down... if:
...then the cursor disappears, though you can still interact with the app with an invisible cursor. This cursor-disappearing behaviour never happens when repeating these instructions over a window that has focus. I was also able to make the situation worse by playing around with |
Fixes swaywm#4819. This commit ensures that `seatop_motion` is called to transfer focus when a window is selected via a pen. Previously, it would race with `node_at_coords`, and only properly transfer focus if its returned `surface` was NULL.
Fixes swaywm#4819. This commit ensures that `seatop_motion` is called to transfer focus when a window is selected via a pen. Previously, it would race with `node_at_coords`, and only properly transfer focus if its returned `surface` was NULL.
Fixes swaywm#4819. This commit ensures that `seat_set_focus` is called to transfer focus when a window is selected via a pen. Previously, it would race with `node_at_coords`, and only properly transfer focus if its returned `surface` was NULL.
Fixes swaywm#4819. This commit ensures that `seat_set_focus` is called to transfer focus when a window is selected via a pen. Previously, it would race with `node_at_coords`, and only properly transfer focus if its returned `surface` was NULL.
Fixes #4819. This commit ensures that `seat_set_focus` is called to transfer focus when a window is selected via a pen. Previously, it would race with `node_at_coords`, and only properly transfer focus if its returned `surface` was NULL.
Version 1.2-aa8fe584 (Dec 17 2019 'master')
Default config file
When
focus_follows_mouse
is set, a window is expected to get focus when hovered by the cursor. It works when moving the cursor with a regular touchpad or mouse. It does not when using the pen of a Wacom Intuos S Tablet. The cursor moves over the unfocused window but its focus status is unchanged (or it happens after a delay depending on the application). Both native and xwayland clients are affected. All the input device are attached to the same default seat.Steps
Here is the debug trace: https://gist.github.com/florentc/ad8655f13207be7b6626fca5b8b9b379
Additional remarks
I have noticed several other misbehaviors I suspect share the same cause:
Shall I submit a new issue for each one of the above?
It is as if the cursor moved using the tablet were not the same as the cursor moved by classic devices although all the input devices are attached to the same seat.
I have detailed this issue because it is the easiest to reproduce among a bunch of misbehaviors that make it hard for now to go full tablet and get rid of regular pointing devices, which is impractical.
I am willing to provide additional information or perform other experiments if needed.
The text was updated successfully, but these errors were encountered: