fix segv
[ardour.git] / gtk2_ardour / ardour_dialog.cc
index 10f6bafc6b7f1ac02bbb2ef62da7facc334b8feb..41d9c60444a0a57280e8f380fb5a298e161cefe6 100644 (file)
@@ -39,20 +39,14 @@ ArdourDialog::~ArdourDialog ()
 bool
 ArdourDialog::on_enter_notify_event (GdkEventCrossing *ev)
 {
-       if (ev->detail != GDK_NOTIFY_INFERIOR) {
-               // GTK2FIX
-               //Keyboard::the_keyboard().set_current_dialog (this);
-       }
+       Keyboard::the_keyboard().enter_window (ev, this);
        return false;
 }
 
 bool
 ArdourDialog::on_leave_notify_event (GdkEventCrossing *ev)
 {
-       if (ev->detail != GDK_NOTIFY_INFERIOR) {
-               // GTK2FIX
-               //Keyboard::the_keyboard().set_current_dialog (0);
-       }
+       Keyboard::the_keyboard().leave_window (ev, this);
        return false;
 }