]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/richtooltipg.cpp
only set native window level, when not using a wrapped native window, see #14739
[wxWidgets.git] / src / generic / richtooltipg.cpp
index 0c00e24a67f623cd86d887fcad8bc5ee48a5d260..5d08e1261a052d74459460216ba06ce9b380b787 100644 (file)
@@ -239,7 +239,7 @@ public:
         if ( !rect || rect->IsEmpty() )
             pos = GetTipPoint();
         else
-            pos = wxPoint( rect->x + rect->width / 2, rect->y + rect->height / 2 );
+            pos = GetParent()->ClientToScreen( wxPoint( rect->x + rect->width / 2, rect->y + rect->height / 2 ) );
 
         // We want our anchor point to coincide with this position so offset
         // the position of the top left corner passed to Move() accordingly.