From 0a8642a6b08ec8a201d0a4f93d7ec80f0f7e8518 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Sun, 13 Sep 2015 22:57:55 +0200 Subject: [PATCH] hidpp10: make the fallback profile active and default --- src/driver-hidpp10.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/driver-hidpp10.c b/src/driver-hidpp10.c index 5754f7ef..9f263cc1 100644 --- a/src/driver-hidpp10.c +++ b/src/driver-hidpp10.c @@ -234,7 +234,13 @@ hidpp10drv_probe(struct ratbag_device *device, const struct ratbag_id id) if (hidpp10drv_fill_from_profile(device, dev)) { /* Fall back to something that every mouse has */ + struct ratbag_profile *profile; + ratbag_device_init_profiles(device, 1, 3); + profile = ratbag_device_get_profile_by_index(device, 0); + profile->is_active = true; + profile->is_default = true; + ratbag_profile_unref(profile); } return 0;