From 98fb63e2e3c1ef6033b9f7a1634c2b6f0ac87ee4 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Wed, 19 Jul 2017 19:12:49 +0200 Subject: [PATCH] hidpp10: assign the active resolution when the profile is not active Same than hidpp20. Signed-off-by: Benjamin Tissoires --- src/driver-hidpp10.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/driver-hidpp10.c b/src/driver-hidpp10.c index 89e7f0e6..4b88c3d7 100644 --- a/src/driver-hidpp10.c +++ b/src/driver-hidpp10.c @@ -393,8 +393,11 @@ hidpp10drv_read_profile(struct ratbag_profile *profile, unsigned int index) res->dpi_x == xres && res->dpi_y == yres) res->is_active = true; - if (i == p.default_dpi_mode) + if (i == p.default_dpi_mode) { res->is_default = true; + if (!profile->is_active) + res->is_active = true; + } min = hidpp10_dpi_table_get_min_dpi(hidpp10); max = hidpp10_dpi_table_get_max_dpi(hidpp10);