Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: ui/events/ozone/evdev/input_device_factory_evdev.cc

Issue 2827803002: Make Interaction Media Features MQ dynamic on Linux. (Closed)
Patch Set: Patch for landing, added the mojo bits Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/events/ozone/evdev/input_device_factory_evdev.cc
diff --git a/ui/events/ozone/evdev/input_device_factory_evdev.cc b/ui/events/ozone/evdev/input_device_factory_evdev.cc
index 331759109399468596073bf6fa8ea52f8811ee30..89f29bbd92e4da9e976b2144ace59bbc03b74bf2 100644
--- a/ui/events/ozone/evdev/input_device_factory_evdev.cc
+++ b/ui/events/ozone/evdev/input_device_factory_evdev.cc
@@ -320,6 +320,10 @@ void InputDeviceFactoryEvdev::ApplyInputDeviceSettings() {
for (const auto& it : converters_) {
EventConverterEvdev* converter = it.second.get();
+ // The device was activated/deactivated we need to notify so
+ // Interactions MQs can be updated.
+ if (converter->IsEnabled() != IsDeviceEnabled(converter))
+ UpdateDirtyFlags(converter);
converter->SetEnabled(IsDeviceEnabled(converter));
if (converter->type() == InputDeviceType::INPUT_DEVICE_INTERNAL &&
@@ -332,6 +336,7 @@ void InputDeviceFactoryEvdev::ApplyInputDeviceSettings() {
converter->SetTouchEventLoggingEnabled(
input_device_settings_.touch_event_logging_enabled);
}
+ NotifyDevicesUpdated();
}
void InputDeviceFactoryEvdev::ApplyCapsLockLed() {

Powered by Google App Engine
This is Rietveld 408576698