summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2017-10-19 19:43:03 +0300
committerCaolán McNamara <caolanm@redhat.com>2017-10-19 21:29:54 +0200
commit2c41e9924120ec2e399de9b4d8248f25712ae400 (patch)
tree67d532d6ccc0b2cae4c7696d4ec853a1c4c59ec8
parent02d4421687c1dba797153d9b71c01cf98d1537fb (diff)
tdf#106163 tdf#112830 Mirror mouse enter/leave for gtk2
Change-Id: I02bc5be82bc2bf51ff3e93939273d2c60c1c4d46 Reviewed-on: https://gerrit.libreoffice.org/43570 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/unx/gtk/gtksalframe.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/unx/gtk/gtksalframe.cxx b/vcl/unx/gtk/gtksalframe.cxx
index 27b8f3158c62..59e2b21ad31b 100644
--- a/vcl/unx/gtk/gtksalframe.cxx
+++ b/vcl/unx/gtk/gtksalframe.cxx
@@ -2860,6 +2860,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->CallCallback( (pEvent->type == GDK_ENTER_NOTIFY) ? SalEvent::MouseMove : SalEvent::MouseLeave, &aEvent );
return true;