Update the displays when there is metrics change
This commit is contained in:
parent
50b96ca7ef
commit
b3c3556286
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ void Screen::OnDisplayRemoved(const gfx::Display& old_display) {
|
|||
|
||||
void Screen::OnDisplayMetricsChanged(const gfx::Display& display,
|
||||
uint32_t changed_metrics) {
|
||||
*FindById(&displays_, display.id()) = display;
|
||||
Emit("display-metrics-changed", display, MetricsToArray(changed_metrics));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue