Update the displays when there is metrics change

This commit is contained in:
Cheng Zhao 2015-01-16 12:04:35 -08:00
parent 50b96ca7ef
commit b3c3556286

View file

@ -92,6 +92,7 @@ void Screen::OnDisplayRemoved(const gfx::Display& old_display) {
void Screen::OnDisplayMetricsChanged(const gfx::Display& display, void Screen::OnDisplayMetricsChanged(const gfx::Display& display,
uint32_t changed_metrics) { uint32_t changed_metrics) {
*FindById(&displays_, display.id()) = display;
Emit("display-metrics-changed", display, MetricsToArray(changed_metrics)); Emit("display-metrics-changed", display, MetricsToArray(changed_metrics));
} }