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

[really minor] mouse wheel tilt (buttons 6 and 7 per xev) not passed to windows HVM correctly #2598

Open
tonsimple opened this Issue Jan 21, 2017 · 4 comments

Comments

Projects
None yet
3 participants
@tonsimple

Qubes OS version (e.g., R3.2):

3.2

Affected TemplateVMs (e.g., fedora-23, if applicable):

WIndows 7 HVM


Expected behavior:

If tilt works with normal fedora and debian appvms (tested, it works, tilting Logitech Performance MX wheel works in a qubes linux-based appvm with firefox if xorg.conf is correctly configured to use udev driver and correct event) then tilt should also work in Windows HVM

Actual behavior:

Windows ignores wheel tilt or interprets it as a random button click

Meanwhile, linux appvms are reacting to tilt correctly

Steps to reproduce the behavior:

Have a mouse with wheel tilt.
Have it configured so tilt events are detected and correctly passed to linux AppVMs
Have a windows 7 HVM with Qubes Tools installed
Start windows HVM
Try using the tilt feature

General notes:

I understand it's like, really really small issue :)
But I really like tilt :( and maybe someone knows a clever workaround or a fix will be easy.


Related issues:

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jan 21, 2017

Member

Slightly offtopic: without Qubes tools it will not work, as gui-agent in qemu does not have it implemented:
https://github.com/QubesOS/qubes-gui-agent-xen-hvm-stubdom/blob/master/gui-agent-qemu/qubes-gui.c#L337-L346

On topic: Windows gui-agent (aka wga) does not have it implemented either:
https://github.com/QubesOS/qubes-gui-agent-windows/blob/master/gui-agent/vchan-handlers.c#L236-L265

Looking at documentation, adding Button6 and Button7 as MOUSEEVENTF_HWHEEL should do the trick.
Anyone care to send pull request?

Member

marmarek commented Jan 21, 2017

Slightly offtopic: without Qubes tools it will not work, as gui-agent in qemu does not have it implemented:
https://github.com/QubesOS/qubes-gui-agent-xen-hvm-stubdom/blob/master/gui-agent-qemu/qubes-gui.c#L337-L346

On topic: Windows gui-agent (aka wga) does not have it implemented either:
https://github.com/QubesOS/qubes-gui-agent-windows/blob/master/gui-agent/vchan-handlers.c#L236-L265

Looking at documentation, adding Button6 and Button7 as MOUSEEVENTF_HWHEEL should do the trick.
Anyone care to send pull request?

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jan 21, 2017

Member

Just to make sure - check wga logs to see if "unknown button pressed/released " messages are logged and button numbers are 6 and 7.

Member

marmarek commented Jan 21, 2017

Just to make sure - check wga logs to see if "unknown button pressed/released " messages are logged and button numbers are 6 and 7.

@tonsimple

This comment has been minimized.

Show comment
Hide comment
@tonsimple

tonsimple Jan 22, 2017

Hm, found file
qga-20170122-001659-1372.txt in logs
This is what looks like
http://pastebin.com/fVp1z87q

Is that it?

Hm, found file
qga-20170122-001659-1372.txt in logs
This is what looks like
http://pastebin.com/fVp1z87q

Is that it?

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jan 22, 2017

Member

Yes, exactly. And buttons indeed are 6 and 7.

Member

marmarek commented Jan 22, 2017

Yes, exactly. And buttons indeed are 6 and 7.

@andrewdavidwong andrewdavidwong added this to the Release 3.2 updates milestone Jan 22, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment