dragcheckbox rework, boxblur create can grab
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / dragcheckbox.C
index c2e1f5d4829c4a0b1cf2be49bb1b87633041a201..8f699bdb7e9710ef27a93f98cf2d842cef7aa044 100644 (file)
@@ -84,6 +84,14 @@ void DragCheckBox::drag_deactivate()
        dragging = 0;
 }
 
+int DragCheckBox::handle_ungrab()
+{
+       drag_deactivate();
+       update(*value = 0);
+       update_gui();
+       return 1;
+}
+
 int DragCheckBox::check_pending()
 {
        if( pending && !grab_event_count() ) {