From 07bf8d7c73fba7bc7d9a6fd120f72cecad787088 Mon Sep 17 00:00:00 2001
From: Szabolcs David <davidsz@inf.u-szeged.hu>
Date: Thu, 30 Apr 2015 03:52:13 -0700
Subject: [PATCH] Remove Q_UNREACHABLE from
 DesktopScreenQt::GetDisplayNearestWindow

Chromium uses this method when the user attempts to drag.

Task-number: QTBUG-45723
Change-Id: Ibe3946846f0f4e2d2a25ca36e66fa7235d4aecea
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
---
 src/core/desktop_screen_qt.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/core/desktop_screen_qt.cpp b/src/core/desktop_screen_qt.cpp
index 6469ad8c2..720cd1faf 100644
--- a/src/core/desktop_screen_qt.cpp
+++ b/src/core/desktop_screen_qt.cpp
@@ -70,7 +70,8 @@ std::vector<gfx::Display> DesktopScreenQt::GetAllDisplays() const
 
 gfx::Display DesktopScreenQt::GetDisplayNearestWindow(gfx::NativeView window) const
 {
-    Q_UNREACHABLE();
+    // RenderViewHostImpl::OnStartDragging uses this to determine
+    // the scale factor for the view.
     return gfx::Display();
 }
 
-- 
GitLab