Nux

Merge lp://qastaging/~azzar1/nux/lp-1228093 into lp://qastaging/nux

Proposed by Andrea Azzarone
Status: Rejected
Rejected by: Marco Trevisan (Treviño)
Proposed branch: lp://qastaging/~azzar1/nux/lp-1228093
Merge into: lp://qastaging/nux
Diff against target: 43 lines (+4/-4)
2 files modified
NuxGraphics/GraphicsDisplayX11.cpp (+2/-2)
tests/xtest-mouse-buttons.cpp (+2/-2)
To merge this branch: bzr merge lp://qastaging/~azzar1/nux/lp-1228093
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Unity Team Pending
Review via email: mp+186758@code.qastaging.launchpad.net

Commit message

Disable buttons6/7 (mouse scroll left/right) for Ubuntu S.

Description of the change

== Problem ==
Dash content flickers when the touchpad is used to scroll it.

== Fix ==
Using Ubuntu S horizontal scrolling is enabled by default (and can't be disabled from g-c-c). If you have two finger scrolling enabled it's easy to get this problem. So for the moment let's just disable button6/7 in nux. We don't really support it and we don't use it in unity. Fix it in a proper way requires an API break.

To post a comment you must log in.
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Mh, instead of this I think it's better to workaround the issue in unity... By ignoring the horizontal scrolling there (otherwise this would break alt+tab horiz scrolling)...

We can instead define two more mouse states like NUX_EVENT_MOUSEWHEEL_HORIZONTAL and NUX_EVENT_MOUSEWHEEL_VERTICAL. This won't break the api and we can then verify the type of scroll event by just checking the event's mouse_state at unity level.

Revision history for this message
Andrea Azzarone (azzar1) wrote :

Removing NUX_EVENT_MOUSEWHEEL will break the API.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

> Removing NUX_EVENT_MOUSEWHEEL will break the API.

You don't have to remove it.
That bit will be shared by both the movements so you'll have:

_mouse_state |= NUX_EVENT_MOUSEWHEEL;
_mouse_state |= NUX_EVENT_MOUSEWHEEL_HORIZONTAL;

and
_mouse_state |= NUX_EVENT_MOUSEWHEEL;
_mouse_state |= NUX_EVENT_MOUSEWHEEL_VERTICAL;

Unmerged revisions

818. By Andrea Azzarone

Disable buttons6/7 (mouse scroll left/right) for Ubuntu S.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches