13
0

Slip Contents Drag: regions should draw transparently while dragging, so you can line-up transients

This commit is contained in:
Ben Loftis 2021-08-06 08:29:42 -05:00
parent a04eb5ee34
commit 9635aca923

View File

@ -711,6 +711,8 @@ RegionSlipContentsDrag::motion (GdkEvent* event, bool first_move)
for (list<DraggingView>::iterator i = _views.begin(); i != _views.end(); ++i) {
RegionView* rv = i->view;
rv->region()->clear_changes ();
rv->drag_start (); //this allows the region to draw itself 'transparently' while we drag it
}
} else {
@ -731,10 +733,11 @@ RegionSlipContentsDrag::finished (GdkEvent *, bool movement_occurred)
for (list<DraggingView>::iterator i = _views.begin(); i != _views.end(); ++i) {
RegionView* rv = i->view;
_editor->session()->add_command (new StatefulDiffCommand (rv->region()));
rv->drag_end ();
}
_editor->commit_reversible_command ();
}
}
void