diff --git a/clutter/clutter/clutter-device-manager.c b/clutter/clutter/clutter-device-manager.c index 1800d01c4..c67638422 100644 --- a/clutter/clutter/clutter-device-manager.c +++ b/clutter/clutter/clutter-device-manager.c @@ -550,13 +550,7 @@ static gboolean are_kbd_a11y_settings_equal (ClutterKbdA11ySettings *a, ClutterKbdA11ySettings *b) { - return (a->controls == b->controls && - a->slowkeys_delay == b->slowkeys_delay && - a->debounce_delay == b->debounce_delay && - a->timeout_delay == b->timeout_delay && - a->mousekeys_init_delay == b->mousekeys_init_delay && - a->mousekeys_max_speed == b->mousekeys_max_speed && - a->mousekeys_accel_time == b->mousekeys_accel_time); + return (memcmp (a, b, sizeof (ClutterKbdA11ySettings)) == 0); } void