X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..c1ef87c33d21f834a55f106324d5a6de4b9600cb:/src/unix/displayx11.cpp diff --git a/src/unix/displayx11.cpp b/src/unix/displayx11.cpp index aae5896769..20cd747e13 100644 --- a/src/unix/displayx11.cpp +++ b/src/unix/displayx11.cpp @@ -92,7 +92,16 @@ int wxDisplayBase::GetFromPoint(const wxPoint &p) } else { - return 0; + wxSize size = wxGetDisplaySize(); + if (p.x >= 0 && + p.x <= size.GetWidth() && + p.y > 0 && + p.y <= size.GetHeight()) + { + return 0; + } + + return -1 } } @@ -135,7 +144,7 @@ int wxDisplay::GetDepth() const wxString wxDisplay::GetName() const { - return ""; + return wxEmptyString; } #endif /* wxUSE_DISPLAY */