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

Caolán McNamara caolanm at redhat.com
Tue Sep 12 11:16:32 UTC 2017


 svx/source/tbxctrls/layctrl.cxx |    2 --
 vcl/unx/gtk3/gtk3gtkframe.cxx   |    3 +++
 2 files changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 7b1fbcb0e0e1f29814c646dbe283fa0eabed099a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Sep 12 12:15:18 2017 +0100

    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

diff --git a/svx/source/tbxctrls/layctrl.cxx b/svx/source/tbxctrls/layctrl.cxx
index 88948143a321..ef22cab1e8e9 100644
--- a/svx/source/tbxctrls/layctrl.cxx
+++ b/svx/source/tbxctrls/layctrl.cxx
@@ -160,8 +160,6 @@ void TableWindow::dispose()
 void TableWindow::MouseMove( const MouseEvent& rMEvt )
 {
     SfxPopupWindow::MouseMove( rMEvt );
-    if (IsInCleanUp())
-        return;
     Point aPos = rMEvt.GetPosPixel();
     Point aMousePos( aPos );
 
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;


More information about the Libreoffice-commits mailing list