[Libreoffice-commits] core.git: vcl/unx

Maxim Monastirsky momonasmon at gmail.com
Thu Oct 19 19:30:19 UTC 2017


 vcl/unx/gtk/gtksalframe.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 2c41e9924120ec2e399de9b4d8248f25712ae400
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date:   Thu Oct 19 19:43:03 2017 +0300

    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 at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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;


More information about the Libreoffice-commits mailing list