diff options
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index 6b658d24fae7..90055b3ecc57 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -3010,6 +3010,14 @@ private: return true; } + /* Save press to possibly begin a drag */ + if (pEvent->type != GDK_BUTTON_RELEASE) + { + m_nPressedButton = pEvent->button; + m_nPressStartX = pEvent->x; + m_nPressStartY = pEvent->y; + } + if (!m_aMousePressHdl.IsSet() && !m_aMouseReleaseHdl.IsSet()) return false; @@ -3060,14 +3068,6 @@ private: return false; } - /* Save press to possibly begin a drag */ - if (pEvent->type != GDK_BUTTON_RELEASE) - { - m_nPressedButton = pEvent->button; - m_nPressStartX = pEvent->x; - m_nPressStartY = pEvent->y; - } - sal_uInt32 nModCode = GtkSalFrame::GetMouseModCode(pEvent->state); // strip out which buttons are involved from the nModCode and replace with m_nLastMouseButton sal_uInt16 nCode = m_nLastMouseButton | (nModCode & (KEY_SHIFT | KEY_MOD1 | KEY_MOD2)); |