Commit e2efa0f3 authored by alexst's avatar alexst Committed by Commit bot

[ozone] Enable display controller before notifying its users that it's available.

We take away the controller when we suspend, but never successfully
give it back to window_delegate on resume because it's expected to be
in enabled state. The result was mouse cursor not getting reset on
resume.

BUG=446184
NOTRY=true

Review URL: https://codereview.chromium.org/845303004

Cr-Commit-Position: refs/heads/master@{#311581}
parent abc858df
......@@ -121,10 +121,12 @@ bool ScreenManager::ConfigureDisplayController(uint32_t crtc,
return HandleMirrorMode(it, mirror, crtc, connector);
}
// Just re-enable the controller to re-use the current state.
bool enabled = controller->Enable();
FOR_EACH_OBSERVER(DisplayChangeObserver, observers_,
OnDisplayChanged(controller));
// Just re-enable the controller to re-use the current state.
return controller->Enable();
return enabled;
}
// Either the mode or the location of the display changed, so exit mirror
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment