From 46cb23b0309b823cd99c9b8e509e750eaaa8693a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 8 Nov 2019 00:09:29 +0100 Subject: [PATCH] Don't assume that the first monitor is always the primary one This is not necessarily the case at least under MSW, so while it makes sense to do this by default in wxDisplayImpl::IsPrimary() implementation, MSW-specific version should override it instead of being totally unused as it was until now. --- src/common/dpycmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/dpycmn.cpp b/src/common/dpycmn.cpp index b9123f39dd..24e77f237f 100644 --- a/src/common/dpycmn.cpp +++ b/src/common/dpycmn.cpp @@ -159,7 +159,7 @@ wxString wxDisplay::GetName() const bool wxDisplay::IsPrimary() const { - return m_impl && m_impl->GetIndex() == 0; + return m_impl && m_impl->IsPrimary(); } #if wxUSE_DISPLAY