After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 765218 - schemas: Add mouse accel profile key
schemas: Add mouse accel profile key
Status: RESOLVED FIXED
Product: gsettings-desktop-schemas
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gsettings-desktop-schemas-maint
gsettings-desktop-schemas-maint
Depends on:
Blocks: 769179
 
 
Reported: 2016-04-18 14:43 UTC by Jonas Ådahl
Modified: 2016-07-28 07:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
schemas: Add mouse accel profile key (2.26 KB, patch)
2016-04-18 14:43 UTC, Jonas Ådahl
needs-work Details | Review
schemas: Add mouse and trackball accel profile keys (3.11 KB, patch)
2016-07-26 08:20 UTC, Jonas Ådahl
committed Details | Review

Description Jonas Ådahl 2016-04-18 14:43:03 UTC
Users seems to want to disable pointer acceleration for mouse devices. This is be needed to fix bug 763293.

We should also consider adding the same setting for touchpads and trackpoints.
Comment 1 Jonas Ådahl 2016-04-18 14:43:07 UTC
Created attachment 326265 [details] [review]
schemas: Add mouse accel profile key

Add an entry for configuring the acceleration profile for mouse
devices. This is intended to be mapped to the libinput acceleration
profile configuration API.
Comment 2 Bastien Nocera 2016-04-19 08:39:47 UTC
Review of attachment 326265 [details] [review]:

::: headers/gdesktop-enums.h
@@ +82,3 @@
+  G_DESKTOP_MOUSE_ACCEL_PROFILE_FLAT,
+  G_DESKTOP_MOUSE_ACCEL_PROFILE_ADAPTIVE
+} GDesktopMouseAccelProfile;

Can we use a string instead, so that we don't need to update this when libinput has a new acceleration profile?
Comment 3 Jonas Ådahl 2016-04-19 12:36:45 UTC
(In reply to Bastien Nocera from comment #2)
> Review of attachment 326265 [details] [review] [review]:
> 
> ::: headers/gdesktop-enums.h
> @@ +82,3 @@
> +  G_DESKTOP_MOUSE_ACCEL_PROFILE_FLAT,
> +  G_DESKTOP_MOUSE_ACCEL_PROFILE_ADAPTIVE
> +} GDesktopMouseAccelProfile;
> 
> Can we use a string instead, so that we don't need to update this when
> libinput has a new acceleration profile?

We could, but I both also don't see libinput adding any accel profiles very often, so not sure the benefit is worth the error-prone:ness of a string.
Comment 4 Bastien Nocera 2016-04-19 12:46:24 UTC
(In reply to Jonas Ådahl from comment #3)
> (In reply to Bastien Nocera from comment #2)
> > Review of attachment 326265 [details] [review] [review] [review]:
> > 
> > ::: headers/gdesktop-enums.h
> > @@ +82,3 @@
> > +  G_DESKTOP_MOUSE_ACCEL_PROFILE_FLAT,
> > +  G_DESKTOP_MOUSE_ACCEL_PROFILE_ADAPTIVE
> > +} GDesktopMouseAccelProfile;
> > 
> > Can we use a string instead, so that we don't need to update this when
> > libinput has a new acceleration profile?
> 
> We could, but I both also don't see libinput adding any accel profiles very
> often, so not sure the benefit is worth the error-prone:ness of a string.

Future proofing....

In any case, if you're happy with using an enum, sure. Only thing I'd do is rename the *mouse* accel profile to *pointer* accel profile, and add the configuration for mouse, trackball, etc. right now. No need to delay that as we're going to get asked anyway.
Comment 5 Jonas Ådahl 2016-04-19 12:59:45 UTC
(In reply to Bastien Nocera from comment #4)
> (In reply to Jonas Ådahl from comment #3)
> > (In reply to Bastien Nocera from comment #2)
> > > Review of attachment 326265 [details] [review] [review] [review] [review]:
> > > 
> > > ::: headers/gdesktop-enums.h
> > > @@ +82,3 @@
> > > +  G_DESKTOP_MOUSE_ACCEL_PROFILE_FLAT,
> > > +  G_DESKTOP_MOUSE_ACCEL_PROFILE_ADAPTIVE
> > > +} GDesktopMouseAccelProfile;
> > > 
> > > Can we use a string instead, so that we don't need to update this when
> > > libinput has a new acceleration profile?
> > 
> > We could, but I both also don't see libinput adding any accel profiles very
> > often, so not sure the benefit is worth the error-prone:ness of a string.
> 
> Future proofing....
> 
> In any case, if you're happy with using an enum, sure. Only thing I'd do is
> rename the *mouse* accel profile to *pointer* accel profile, and add the
> configuration for mouse, trackball, etc. right now. No need to delay that as
> we're going to get asked anyway.

We'd need to update mutter source code anyway, so adding a value to this entry is just marginally more work.

Fair point with renaming and adding trackball and touchpad keys. Will update.
Comment 6 Jonas Ådahl 2016-07-26 08:20:29 UTC
Created attachment 332129 [details] [review]
schemas: Add mouse and trackball accel profile keys

Add an entry for configuring the acceleration profile for mouse and
trackball devices. This is intended to be mapped to the libinput
acceleration profile configuration API.
Comment 7 Bastien Nocera 2016-07-27 13:39:09 UTC
Review of attachment 332129 [details] [review]:

Sure.
Comment 8 Jonas Ådahl 2016-07-28 07:22:35 UTC
Attachment 332129 [details] pushed as 9a7e6d3 - schemas: Add mouse and trackball accel profile keys