X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9eb662e94c05e177a6574ffa2c9898b4a0a0b6e0..26993c4f64a7551050c597cd5f65e3c7f3066eaa:/contrib/src/stc/ScintillaWX.cpp diff --git a/contrib/src/stc/ScintillaWX.cpp b/contrib/src/stc/ScintillaWX.cpp index 7e44f56b3e..cd0064be5c 100644 --- a/contrib/src/stc/ScintillaWX.cpp +++ b/contrib/src/stc/ScintillaWX.cpp @@ -96,7 +96,7 @@ void ScintillaWX::Finalise() { void ScintillaWX::StartDrag() { - wxDropSource source; + wxDropSource source(wMain.GetID()); wxTextDataObject data(dragChars); wxDragResult result; @@ -129,9 +129,9 @@ void ScintillaWX::SetTicking(bool on) { void ScintillaWX::SetMouseCapture(bool on) { - if (on) + if (on && !capturedMouse) wMain.GetID()->CaptureMouse(); - else + else if (!on && capturedMouse) wMain.GetID()->ReleaseMouse(); capturedMouse = on; }