summaryrefslogtreecommitdiffstats
path: root/ash/touch/touch_transformer_controller.cc
diff options
context:
space:
mode:
authorpkotwicz <pkotwicz@chromium.org>2015-03-02 13:14:42 -0800
committerCommit bot <commit-bot@chromium.org>2015-03-02 21:15:38 +0000
commit94b8fe46a0abf285a0c39cd36007de0236dd7e97 (patch)
tree6516fb63caeee11e5f1d33f0a7fe0cb86077c06d /ash/touch/touch_transformer_controller.cc
parentb04b44a250f0152b524278e5650cf8b413c1ef9f (diff)
downloadchromium_src-94b8fe46a0abf285a0c39cd36007de0236dd7e97.zip
chromium_src-94b8fe46a0abf285a0c39cd36007de0236dd7e97.tar.gz
chromium_src-94b8fe46a0abf285a0c39cd36007de0236dd7e97.tar.bz2
Fix touch in software mirror mode when there is no internal display
BUG=462382 TEST=Manual, see bug Review URL: https://codereview.chromium.org/958123003 Cr-Commit-Position: refs/heads/master@{#318763}
Diffstat (limited to 'ash/touch/touch_transformer_controller.cc')
-rw-r--r--ash/touch/touch_transformer_controller.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ash/touch/touch_transformer_controller.cc b/ash/touch/touch_transformer_controller.cc
index aa6475b..d88416e 100644
--- a/ash/touch/touch_transformer_controller.cc
+++ b/ash/touch/touch_transformer_controller.cc
@@ -204,8 +204,8 @@ void TouchTransformerController::UpdateTouchTransformer() const {
RootWindowController::ForWindow(root)->ash_host()->UpdateDisplayID(
display1_id, display2_id);
DisplayInfo source_display =
- gfx::Display::InternalDisplayId() == display1_id ?
- display1 : display2;
+ display_controller->GetPrimaryDisplayId() == display1_id ? display1
+ : display2;
// Mapping from framebuffer size to the source display's native
// resolution.
device_manager->UpdateTouchInfoForDisplay(