aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/ScintillaGTK.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
-rw-r--r--gtk/ScintillaGTK.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 83ba91798..34d3e2289 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -473,10 +473,12 @@ void ScintillaGTK::SetTicking(bool on) {
}
void ScintillaGTK::SetMouseCapture(bool on) {
- if (on) {
- gtk_grab_add(GTK_WIDGET(wDraw.GetID()));
- } else {
- gtk_grab_remove(GTK_WIDGET(wDraw.GetID()));
+ if (mouseDownCaptures) {
+ if (on) {
+ gtk_grab_add(GTK_WIDGET(wDraw.GetID()));
+ } else {
+ gtk_grab_remove(GTK_WIDGET(wDraw.GetID()));
+ }
}
capturedMouse = on;
}