Fix up confusion with relayering after movement drags in
[ardour.git] / gtk2_ardour / ardour_dialog.cc
index bde0d4484e1a77f234cbf79f5ebf25ae73177e3a..b8c755de10a777a37a0fccf0b6f0255a57b502f5 100644 (file)
 
 #include "ardour_dialog.h"
 #include "keyboard.h"
-#include "ardour_ui.h"
 #include "splash.h"
-#include "public_editor.h"
-#include "utils.h"
 
 using namespace std;
-using namespace sigc;
 using namespace Gtk;
 using namespace Gtkmm2ext;
 
@@ -57,14 +53,14 @@ bool
 ArdourDialog::on_enter_notify_event (GdkEventCrossing *ev)
 {
        Keyboard::the_keyboard().enter_window (ev, this);
-       return false;
+       return Dialog::on_enter_notify_event (ev);
 }
 
 bool
 ArdourDialog::on_leave_notify_event (GdkEventCrossing *ev)
 {
        Keyboard::the_keyboard().leave_window (ev, this);
-       return false;
+       return Dialog::on_leave_notify_event (ev);
 }
 
 void
@@ -91,14 +87,9 @@ ArdourDialog::on_show ()
 void
 ArdourDialog::init ()
 {
-       session = 0;
        set_type_hint(Gdk::WINDOW_TYPE_HINT_DIALOG);
        set_border_width (10);
-       CloseAllDialogs.connect (sigc::bind (sigc::mem_fun (*this, &ArdourDialog::response), RESPONSE_CANCEL));
-}
-
-bool
-ArdourDialog::on_key_press_event (GdkEventKey* key)
-{
-       return Gtk::Dialog::on_key_press_event (key);
+       CloseAllDialogs.connect (
+               sigc::bind (sigc::mem_fun (*this, &ArdourDialog::response),
+                           RESPONSE_CANCEL));
 }