elementary / switchboard-plug-mouse-touchpad

Switchboard Mouse & Touchpad Plug
GNU General Public License v3.0
24 stars 13 forks source link

Primary button setting doesn't work #113

Closed cshaa closed 4 years ago

cshaa commented 4 years ago

Describe the bug

Selecting a primary button in Clicking > Primary button doesn't do anything.

Screenshot of the settings window

To Reproduce

Steps to reproduce the behavior:

  1. In terminal launch io.elementary.switchboard
  2. Go to 'Mouse & Touchpad' settings
  3. Notice that an error popped up in the terminal:
    
    (io.elementary.switchboard:500): GLib-GIO-CRITICAL **: 16:09:38.540: g_settings_bind: property 'selected' on class 'GraniteWidgetsModeButton' has type 'gint' which is not compatible with type 'b' of key 'left-handed' on schema 'org.gnome.desktop.peripherals.mouse'

4. Notice how neither one of the two buttons in _Primary buttons_ appear to be pressed (see the screenshot above)
5. Select the right mouse button as the primary:
![Right mouse button selected as primary](https://user-images.githubusercontent.com/1671665/69877791-6f182f00-12c3-11ea-87b2-41389ca7e037.png)
6. Try clicking on something with the right button
7. Observe that it still behaves as a secondary button

(I tested it both on touchpad and wireless mouse, in both cases the left button is still the primary.)

### Expected behavior
The _Primary buttons_ should reflect the current settings when I open up the settings. Changing the primary button should have some effect.

## Platform Information
- OS: elementary OS 5.0 Juno

- [ ] I'm using the latest version from git that I've manually compiled
- [x] I'm using the latest released stable version

![obrazek](https://user-images.githubusercontent.com/1671665/69878225-9a4f4e00-12c4-11ea-9c6a-2e61080315dc.png)