mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-08 07:33:53 +01:00
hidpp20: fix setting default resolution
Signed-off-by: Filipe Laíns <lains@archlinux.org>
This commit is contained in:
committed by
Filipe Laíns
parent
665c022382
commit
016de548fc
@@ -928,6 +928,9 @@ hidpp20drv_update_resolution_dpi_8100(struct ratbag_resolution *resolution,
|
||||
h_profile = &drv_data->profiles->profiles[profile->index];
|
||||
h_profile->dpi[resolution->index] = dpi;
|
||||
|
||||
if (resolution->is_default)
|
||||
h_profile->default_dpi = resolution->index;
|
||||
|
||||
return RATBAG_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user