diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-07-07 12:20:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-07-08 09:22:46 +0100 |
commit | efbe959732687d7a96041a3f7b90e817abbd8145 (patch) | |
tree | 6e423c82e180b7aac1179b510a3a11da82dc39df | |
parent | f9f50f2e52569f07abcdab668122571be9119ae1 (diff) |
gtk3: this is why the active position in a menu jumps to some weird place
if there is a reason for this then perhaps it needs to be protected
with pEvent->window == widget_get_window(pThis->getMouseEventWidget()
Change-Id: I714b67c3e6ace932a605dcd00d337c92c5fdfd19
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkframe.cxx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx index 1695d483b3cf..568c4c8dbfc1 100644 --- a/vcl/unx/gtk3/gtk3gtkframe.cxx +++ b/vcl/unx/gtk3/gtk3gtkframe.cxx @@ -2605,18 +2605,6 @@ gboolean GtkSalFrame::signalButton( GtkWidget*, GdkEventButton* pEvent, gpointer pThis->CallCallback( nEventType, &aEvent ); } - if (!aDel.isDeleted()) - { - int frame_x = (int)(pEvent->x_root - pEvent->x); - int frame_y = (int)(pEvent->y_root - pEvent->y); - if( frame_x != pThis->maGeometry.nX || frame_y != pThis->maGeometry.nY ) - { - pThis->maGeometry.nX = frame_x; - pThis->maGeometry.nY = frame_y; - pThis->CallCallback( SalEvent::Move, nullptr ); - } - } - return true; } |