dragcheckbox rework, boxblur create can grab
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / nbodycuda / nbodywindow.C
index d5c2e9f9526ee93132d3e6b5bd84d55eab8245d9..546f9cbbd9c84476b5351294e748c46465bc0232 100644 (file)
@@ -190,6 +190,13 @@ int N_BodyDrag::handle_event()
                gui->ungrab(cwindow_gui);
        return 1;
 }
+int N_BodyDrag::handle_ungrab()
+{
+       CWindowGUI *cwindow_gui = gui->plugin->server->mwindow->cwindow->gui;
+       int ret = gui->ungrab(cwindow_gui);
+       if( ret ) update(value = 0);
+       return ret;
+}
 
 N_BodySetMode::N_BodySetMode(N_BodyWindow *gui, int x, int y, const char *text)
  : BC_PopupTextBox(gui, 0, text, x, y, xS(100), yS(160))