summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-09-12 12:15:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-09-12 12:16:02 +0100
commit7b1fbcb0e0e1f29814c646dbe283fa0eabed099a (patch)
tree1066d452336dff3902f2c5db79b7be7a0b2e95a1
parent48b200a0a2aa70a7dfc0aad8a4964690ae11d42e (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
-rw-r--r--svx/source/tbxctrls/layctrl.cxx2
-rw-r--r--vcl/unx/gtk3/gtk3gtkframe.cxx3
2 files changed, 3 insertions, 2 deletions
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;