Browse Source

Mixer: Allow the WM to kill the mixer window.

tags/non-daw-v1.1.0
Jonathan Moore Liles 15 years ago
parent
commit
26afb520f2
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      Mixer/main.C

+ 4
- 2
Mixer/main.C View File

@@ -71,8 +71,10 @@ ensure_dirs ( void )

#include <signal.h>

static void cb_main ( Fl_Widget *w, void *v )
static void cb_main ( Fl_Double_Window *o, void *v )
{
if ( Fl::event_key() != FL_Escape )
o->hide();
}

int
@@ -121,7 +123,7 @@ main ( int argc, char **argv )
}
o->end();

o->callback( cb_main, main_window );
o->callback( (Fl_Callback*)cb_main, main_window );
o->show( argc, argv );
}



Loading…
Cancel
Save