summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-07-20 11:54:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-07-21 11:01:39 +0200
commit7aca5ee1192b45d05a601946a5c784b8c5bd61bd (patch)
treeba648476deedb0cf1943f87c801f351bf24801f6 /vcl/source/app
parent4c00a5bce384c5fa3b46cf5bb29c7e9b1e506ea0 (diff)
Assume that all modern X servers have a unified display area
Change-Id: I704e6147085b2eca7fc6fd93261aced3e04b2fff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154667 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/svapp.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 535af17dfb87..e7d88fe41394 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -1222,12 +1222,6 @@ unsigned int Application::GetScreenCount()
return pSys ? pSys->GetDisplayScreenCount() : 0;
}
-bool Application::IsUnifiedDisplay()
-{
- SalSystem* pSys = ImplGetSalSystem();
- return pSys == nullptr || pSys->IsUnifiedDisplay();
-}
-
unsigned int Application::GetDisplayBuiltInScreen()
{
SalSystem* pSys = ImplGetSalSystem();
@@ -1285,9 +1279,6 @@ tools::Long calcDistSquare( const Point& i_rPoint, const tools::Rectangle& i_rRe
unsigned int Application::GetBestScreen( const tools::Rectangle& i_rRect )
{
- if( !IsUnifiedDisplay() )
- return GetDisplayBuiltInScreen();
-
const unsigned int nScreens = GetScreenCount();
unsigned int nBestMatchScreen = 0;
unsigned long nOverlap = 0;