Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

the mouse wheel does not respond sometimes, so you need to scroll it for a few more times. #489

Open
DreamMaoMao opened this issue Sep 27, 2023 · 12 comments
Labels
A: bug Something isn't working

Comments

@DreamMaoMao
Copy link

DreamMaoMao commented Sep 27, 2023

Info

dwl version:0.4
wlroots version:0.16.2

Description

the mouse wheel does not respond sometimes, so you need to scroll it for a few more times.
how can I to found out what'r going on.

@DreamMaoMao DreamMaoMao added the A: bug Something isn't working label Sep 27, 2023
@DreamMaoMao
Copy link
Author

I found the problem. When the mouse moves, the scroll wheel event will not respond. It must be kept absolutely still for the mouse scroll wheel event to be effective

@DreamMaoMao
Copy link
Author

Is there a way to detect both events at the same time?

@DreamMaoMao
Copy link
Author

After testing, I found that this problem only exists in the xwayland window,
I can use both mouse movement and scroll wheel on a pure wayland window at the same time.

@DreamMaoMao
Copy link
Author

When I used xev-id to monitor a specific xwayland window, I found that the window received a scroll event when the mouse moved

I checked the output with hyprland and found it was consistent

However, when hyprland moves the mouse, the page can scroll when sliding the wheel, while dwl cannot scroll

I have no idea what's going on, why received the same event,dwl can't scroll the page, but hyprland can

@sevz17
Copy link
Collaborator

sevz17 commented Sep 30, 2023

Mmm, could you please test on sway?, I could read the code to see what's different from dwl (I don't know C++)

@DreamMaoMao
Copy link
Author

Mmm, could you please test on sway?, I could read the code to see what's different from dwl (I don't know C++)

I just tested the latest source code on sway and sway doesn't have this problem, it just appears on dwl

@DreamMaoMao
Copy link
Author

@sevz17 Hey bro, do you have any clue about this question,

@sevz17
Copy link
Collaborator

sevz17 commented Oct 1, 2023

Nope, I still have to look at sway code.

@DreamMaoMao
Copy link
Author

@sevz17

image

I took a look at the source code for sway and found that the difference is this code.

if you comment this code,sway won't be able to use the scroll wheel when moving the mouse in the xwayland window

@DreamMaoMao
Copy link
Author

ok i have fixed it.
image

@DreamMaoMao
Copy link
Author

DreamMaoMao commented Oct 16, 2023

This bug doesn't seem to be fixed in the main code, should I keep it open until it is fixed?

@sevz17
Copy link
Collaborator

sevz17 commented Oct 17, 2023

... should I keep it open until it is fixed?

Yes, please.

And thank you for pointing out the fix!
For know you'll need to keep patching your dwl, (as we're discussing merging relative-pointer+pointer-constraints)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants