Chromium Code Reviews| Index: ash/display/display_change_observer_x11.cc |
| diff --git a/ash/display/display_change_observer_x11.cc b/ash/display/display_change_observer_x11.cc |
| index 7ba4af4eb203a441b35b0cba224dcd22939b7b60..a6477c060f3c9fe9f07108a7ac8bb86efd652ab7 100644 |
| --- a/ash/display/display_change_observer_x11.cc |
| +++ b/ash/display/display_change_observer_x11.cc |
| @@ -119,9 +119,10 @@ DisplayChangeObserverX11::DisplayChangeObserverX11() |
| std::string(output_info->name)); |
| XRRFreeOutputInfo(output_info); |
| if (is_internal) { |
| - // No need to check the return value of |GetDisplayID()| as |
| - // the default value is |gfx::Display::kInvalidDisplayID| anyway. |
| - gfx::Display::SetInternalDisplayId(GetDisplayId(output, output_index)); |
| + int64 id = GetDisplayId(output, output_index); |
| + // Fallback to output index. crbug.com/18100 |
|
hshi1
2013/03/05 22:58:40
nit: bug number should be 180100
oshima
2013/03/05 23:36:14
Done.
|
| + gfx::Display::SetInternalDisplayId( |
| + id == gfx::Display::kInvalidDisplayID ? output_index : id); |
| break; |
| } |
| } |