mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
hidpp10: assign the active resolution when the profile is not active
Same than hidpp20. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
committed by
Peter Hutterer
parent
55bab29233
commit
98fb63e2e3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user