| Index: ui/views/event_monitor_mac.mm
|
| diff --git a/ui/views/event_monitor_mac.mm b/ui/views/event_monitor_mac.mm
|
| index cb3e54e9a1c7e2550b6c0e1b71d160f2be28200e..45578c9948a43fbedafc6e81c1be4cdadfa7190d 100644
|
| --- a/ui/views/event_monitor_mac.mm
|
| +++ b/ui/views/event_monitor_mac.mm
|
| @@ -30,7 +30,7 @@ scoped_ptr<EventMonitor> EventMonitor::CreateWindowMonitor(
|
| gfx::Point EventMonitor::GetLastMouseLocation() {
|
| NSPoint mouseLocation = [NSEvent mouseLocation];
|
| // Flip coordinates to gfx (0,0 in top-left corner) using primary screen.
|
| - NSScreen* screen = [[NSScreen screens] objectAtIndex:0];
|
| + NSScreen* screen = [[NSScreen screens] firstObject];
|
| mouseLocation.y = NSMaxY([screen frame]) - mouseLocation.y;
|
| return gfx::Point(mouseLocation.x, mouseLocation.y);
|
| }
|
|
|