From 26afb520f2511f9ed0df30c3fa666bd542bff5d0 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Tue, 26 Jan 2010 22:11:30 -0600 Subject: [PATCH] Mixer: Allow the WM to kill the mixer window. --- Mixer/main.C | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Mixer/main.C b/Mixer/main.C index 44f6802..d3a5f5e 100644 --- a/Mixer/main.C +++ b/Mixer/main.C @@ -71,8 +71,10 @@ ensure_dirs ( void ) #include -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 ); }