diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-11-04 10:29:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-11-04 12:53:36 +0100 |
commit | b1671feb791178f9c498b0d00a5aad486bccfa03 (patch) | |
tree | 998786e3ff66201c04d2107c6a4d205bf2537dde /vcl/unx/gtk3 | |
parent | 63e1f94c121a5153c2b9012a7fbc2da3a493a8be (diff) |
Related: tdf#151509 trust the crossing position provided by gtk
don't attempt to recalculate it from root window position with an
offset of our belief as to our position
Change-Id: Ia08cfd2aa5de73139ec7444b4576fe0c00240009
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142271
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx/gtk3')
-rw-r--r-- | vcl/unx/gtk3/gtkframe.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx index 024c96e23a8a..525bf2554a60 100644 --- a/vcl/unx/gtk3/gtkframe.cxx +++ b/vcl/unx/gtk3/gtkframe.cxx @@ -3568,8 +3568,8 @@ gboolean GtkSalFrame::signalCrossing( GtkWidget*, GdkEventCrossing* pEvent, gpoi { GtkSalFrame* pThis = static_cast<GtkSalFrame*>(frame); pThis->DrawingAreaCrossing((pEvent->type == GDK_ENTER_NOTIFY) ? SalEvent::MouseMove : SalEvent::MouseLeave, - pEvent->x_root - pThis->maGeometry.x(), - pEvent->y_root - pThis->maGeometry.y(), + pEvent->x, + pEvent->y, pEvent->time, pEvent->state); return true; |