diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-12 12:15:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-12 12:16:02 +0100 |
commit | 7b1fbcb0e0e1f29814c646dbe283fa0eabed099a (patch) | |
tree | 1066d452336dff3902f2c5db79b7be7a0b2e95a1 /vcl | |
parent | 48b200a0a2aa70a7dfc0aad8a4964690ae11d42e (diff) |
Resolves: tdf#106163 MouseMove/MouseLeave from crossing not mirrored in rtl
but we do mirror the event for normal mousemove, this looks like the real
bug here
Change-Id: I178d53f5f40dbd075984019e25e6d7665b6cdf87
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkframe.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx index c9c0eb50c7c9..11d6c8cffed8 100644 --- a/vcl/unx/gtk3/gtk3gtkframe.cxx +++ b/vcl/unx/gtk3/gtk3gtkframe.cxx @@ -2887,6 +2887,9 @@ gboolean GtkSalFrame::signalCrossing( GtkWidget*, GdkEventCrossing* pEvent, gpoi aEvent.mnCode = GetMouseModCode( pEvent->state ); aEvent.mnButton = 0; + if (AllSettings::GetLayoutRTL()) + aEvent.mnX = pThis->maGeometry.nWidth-1-aEvent.mnX; + pThis->CallCallbackExc( (pEvent->type == GDK_ENTER_NOTIFY) ? SalEvent::MouseMove : SalEvent::MouseLeave, &aEvent ); return true; |