diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2017-06-30 11:45:48 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2017-07-03 14:07:21 +0200 |
commit | f0b758b891260d385f8d06e89482fd27db15d76a (patch) | |
tree | 3c2b959a65cb212cf9995ed40b6762dcdbf034fa | |
parent | a150225a598ea4e33bbfcabbd6568c421bc3eb19 (diff) | |
download | mutter-f0b758b891260d385f8d06e89482fd27db15d76a.tar.gz |
backends: Apply tablet settings on all tablet device types during startup
This skipped the device types that are in use on X11.
https://bugzilla.gnome.org/show_bug.cgi?id=782027
-rw-r--r-- | src/backends/meta-input-settings.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/backends/meta-input-settings.c b/src/backends/meta-input-settings.c index 05c3ceb2d..6c5f261e9 100644 --- a/src/backends/meta-input-settings.c +++ b/src/backends/meta-input-settings.c @@ -1075,10 +1075,15 @@ static void apply_mappable_device_settings (MetaInputSettings *input_settings, DeviceMappingInfo *info) { + ClutterInputDeviceType device_type; + update_device_display (input_settings, info->settings, info->device); + device_type = clutter_input_device_get_device_type (info->device); - if (clutter_input_device_get_device_type (info->device) == CLUTTER_TABLET_DEVICE || - clutter_input_device_get_device_type (info->device) == CLUTTER_PAD_DEVICE) + if (device_type == CLUTTER_TABLET_DEVICE || + device_type == CLUTTER_PEN_DEVICE || + device_type == CLUTTER_ERASER_DEVICE || + device_type == CLUTTER_PAD_DEVICE) { update_tablet_mapping (input_settings, info->settings, info->device); update_tablet_area (input_settings, info->settings, info->device); |