Mixer: Fix connection DND.

pull/116/head
Jonathan Moore Liles 2013-05-29 19:40:33 -07:00
parent 54b8dfefb7
commit 02bb329551
2 changed files with 6 additions and 2 deletions

@ -1 +1 @@
Subproject commit a6ac4c8bab5d3b41f382493ab0b1b89ce2d3df92 Subproject commit 02768c459a81592abaa50c6095b3a60b1049b4fc

View File

@ -514,11 +514,12 @@ JACK_Module::handle ( int m )
case FL_PUSH: case FL_PUSH:
return Module::handle(m) || 1; return Module::handle(m) || 1;
case FL_RELEASE: case FL_RELEASE:
Fl::selection_owner(0);
receptive_to_drop = NULL; receptive_to_drop = NULL;
return Module::handle(m) || 1; return Module::handle(m) || 1;
case FL_DRAG: case FL_DRAG:
{ {
if ( ! Fl::event_inside( this ) ) if ( ! Fl::event_inside( this ) && ! Fl::selection_owner() )
{ {
DMESSAGE( "initiation of drag" ); DMESSAGE( "initiation of drag" );
@ -538,6 +539,8 @@ JACK_Module::handle ( int m )
Fl::copy(s, strlen(s) + 1, 0); Fl::copy(s, strlen(s) + 1, 0);
Fl::selection_owner(this);
free( s ); free( s );
Fl::dnd(); Fl::dnd();
@ -562,6 +565,7 @@ JACK_Module::handle ( int m )
} }
return 1; return 1;
case FL_DND_RELEASE: case FL_DND_RELEASE:
Fl::selection_owner(0);
receptive_to_drop = NULL; receptive_to_drop = NULL;
redraw(); redraw();
return 1; return 1;