Skip to content
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

Pointer surface focus not checked before button press #1420

Open
chrisduerr opened this issue May 3, 2024 · 0 comments
Open

Pointer surface focus not checked before button press #1420

chrisduerr opened this issue May 3, 2024 · 0 comments

Comments

@chrisduerr
Copy link
Contributor

This is basically just a low-effort copy-paste of the Sway issue I've opened. However I noticed identical behavior with Anvil so I thought someone might be interested in solving this for Anvil too.


When opening a new subsurface under the mouse pointer, wl_pointer::enter is not sent until after the mouse is moved over the window or a button is pressed. As a result, the first button press still goes through the subsurface under the cursor to the previously focused surface.

A video should make the usecase behind this a little more clear:

tmp.mp4

While the pointer button presses aren't shown in the video, you can see that the two buttons overlap exactly while being on two different subsurfaces. Ideally quickly "spamming" left click should cause the browser to open a lot of tabs, however every time the focus switches between the subsurfaces the first button press is ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant