backends: Fold device mapping check into backend
Make the upper part agnostic about the device being relative in order to avoid applying keep-aspect. The X11 bits already are, so make it sure it's also the case for the native backend. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1486
This commit is contained in:

committed by
Jonas Ådahl

parent
b6a020e9ff
commit
c4d11f7550
@ -545,6 +545,10 @@ meta_input_settings_native_set_tablet_keep_aspect (MetaInputSettings *settings,
|
||||
{
|
||||
double aspect_ratio = 0;
|
||||
|
||||
if (clutter_input_device_get_mapping_mode (device) ==
|
||||
CLUTTER_INPUT_DEVICE_MAPPING_RELATIVE)
|
||||
keep_aspect = FALSE;
|
||||
|
||||
if (keep_aspect)
|
||||
{
|
||||
int width, height;
|
||||
|
Reference in New Issue
Block a user