]> git.saurik.com Git - wxWidgets.git/commit
Use window position in screen coordinates in wxDisplay::GetFromWindow().
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Aug 2010 18:57:42 +0000 (18:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Aug 2010 18:57:42 +0000 (18:57 +0000)
commit5784031727e81690feb9ac59b56f6c6aad7a6a42
tree44c9bbd2e559d288cacbad7294904974d7d7220f
parent18ff59a401eaf823e23759e75110ea42159b38f7
Use window position in screen coordinates in wxDisplay::GetFromWindow().

To determine the display to which the window belongs we must use the window
position in screen coordinates returned by wxWindow::GetScreenRect() and not
the positioned returned by GetRect() which is the same only for the top level
windows but not for the child ones.

Closes #12318.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/dpycmn.cpp