X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=inline;f=cinelerra-5.1%2Fcinelerra%2Fvwindowgui.C;h=bc423328da44ebbc7c42b767fdd12c8837439a13;hb=d60a59baa6cfe24c0fb153ed9e150a834ba29feb;hp=e3f323c526e08acd98c56b05b5e682376a317e89;hpb=b9f98da8f1cd8b7b31ead02fa41f299b56cac3da;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/vwindowgui.C b/cinelerra-5.1/cinelerra/vwindowgui.C index e3f323c5..bc423328 100644 --- a/cinelerra-5.1/cinelerra/vwindowgui.C +++ b/cinelerra-5.1/cinelerra/vwindowgui.C @@ -462,26 +462,22 @@ void VWindowGUI::drag_motion() int VWindowGUI::drag_stop() { - if(get_hidden()) return 0; + if( get_hidden() ) return 0; - if(highlighted && - mwindow->session->current_operation == DRAG_ASSET) - { + if( highlighted && + mwindow->session->current_operation == DRAG_ASSET ) { highlighted = 0; canvas->draw_refresh(); unlock_window(); - Indexable *indexable = mwindow->session->drag_assets->size() ? - mwindow->session->drag_assets->get(0) : - 0; - EDL *edl = mwindow->session->drag_clips->size() ? - mwindow->session->drag_clips->get(0) : - 0; - if(indexable) + Indexable *indexable = + mwindow->session->drag_assets->size() > 0 ? + (Indexable *)mwindow->session->drag_assets->get(0) : + mwindow->session->drag_clips->size() > 0 ? + (Indexable *)mwindow->session->drag_clips->get(0) : 0; + if( indexable ) vwindow->change_source(indexable); - else - if(edl) - vwindow->change_source(edl); + lock_window("VWindowGUI::drag_stop"); return 1; } @@ -602,7 +598,7 @@ void VWindowEditing::toggle_label() } } -void VWindowEditing::prev_label() +void VWindowEditing::prev_label(int cut) { if(vwindow->get_edl()) { @@ -632,7 +628,7 @@ void VWindowEditing::prev_label() } } -void VWindowEditing::next_label() +void VWindowEditing::next_label(int cut) { if(vwindow->get_edl()) { @@ -861,6 +857,12 @@ void VWindowCanvas::draw_refresh(int flush) } } +int VWindowCanvas::need_overlays() +{ + if( gui->highlighted ) return 1; + return 0; +} + void VWindowCanvas::draw_overlays() { if( gui->highlighted )