Browse Source

Mixer: Fix connection DND.

tags/non-daw-v1.2.0
Jonathan Moore Liles 12 years ago
parent
commit
02bb329551
2 changed files with 6 additions and 2 deletions
  1. +1
    -1
      lib/ntk
  2. +5
    -1
      mixer/src/JACK_Module.C

+ 1
- 1
lib/ntk

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

+ 5
- 1
mixer/src/JACK_Module.C View File

@@ -514,11 +514,12 @@ JACK_Module::handle ( int m )
case FL_PUSH:
return Module::handle(m) || 1;
case FL_RELEASE:
Fl::selection_owner(0);
receptive_to_drop = NULL;
return Module::handle(m) || 1;
case FL_DRAG:
{
if ( ! Fl::event_inside( this ) )
if ( ! Fl::event_inside( this ) && ! Fl::selection_owner() )
{
DMESSAGE( "initiation of drag" );

@@ -538,6 +539,8 @@ JACK_Module::handle ( int m )
Fl::copy(s, strlen(s) + 1, 0);

Fl::selection_owner(this);

free( s );

Fl::dnd();
@@ -562,6 +565,7 @@ JACK_Module::handle ( int m )
}
return 1;
case FL_DND_RELEASE:
Fl::selection_owner(0);
receptive_to_drop = NULL;
redraw();
return 1;


Loading…
Cancel
Save