[Libreoffice-commits] core.git: vcl/unx
Maxim Monastirsky
momonasmon at gmail.com
Wed Jan 4 22:11:09 UTC 2017
vcl/unx/gtk3/gtk3gtkframe.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 23a13694a5a70098b5ecd58b99d99618111f3ea5
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date: Wed Dec 28 01:02:33 2016 +0200
tdf#104944 gtk3: Ignore mouse up event if the wrong frame
Change-Id: I3d0aad6d2b434866df9110d3b8493fec2d2c94fe
Reviewed-on: https://gerrit.libreoffice.org/32465
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Maxim Monastirsky <momonasmon at gmail.com>
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 8c91660..3f49b65 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -2611,11 +2611,12 @@ gboolean GtkSalFrame::signalButton( GtkWidget*, GdkEventButton* pEvent, gpointer
vcl::DeletionListener aDel( pThis );
- if (pEvent->type == GDK_BUTTON_PRESS && pThis->isFloatGrabWindow())
+ if (pThis->isFloatGrabWindow() && pEvent->window != widget_get_window(pThis->getMouseEventWidget()))
{
- bool bClosePopups = (pEvent->window != widget_get_window(pThis->getMouseEventWidget()));
- if (bClosePopups)
+ if (pEvent->type == GDK_BUTTON_PRESS)
pThis->closePopup();
+ else if (pEvent->type == GDK_BUTTON_RELEASE)
+ return true;
}
if (!aDel.isDeleted())
More information about the Libreoffice-commits
mailing list