show window title in DEBUG::Accelerator debug trace

This commit is contained in:
Paul Davis 2016-04-13 12:34:59 -04:00
parent b7768becb5
commit ea17875c36

View file

@ -5400,7 +5400,7 @@ ARDOUR_UI::key_press_focus_accelerator_handler (Gtk::Window& window, GdkEventKey
}
}
DEBUG_TRACE (DEBUG::Accelerators, string_compose ("Win = %1 focus = %7 (%8) Key event: code = %2 state = %3 special handling ? %4 magic widget focus ? %5 focus widget %6 named %7 mods ? %8\n",
DEBUG_TRACE (DEBUG::Accelerators, string_compose ("Win = %1 [title = %9] focus = %7 (%8) Key event: code = %2 state = %3 special handling ? %4 magic widget focus ? %5 focus widget %6 named %7 mods ? %8\n",
win,
ev->keyval,
show_gdk_event_state (ev->state),
@ -5408,7 +5408,8 @@ ARDOUR_UI::key_press_focus_accelerator_handler (Gtk::Window& window, GdkEventKey
Keyboard::some_magic_widget_has_focus(),
focus,
(focus ? gtk_widget_get_name (focus) : "no focus widget"),
((ev->state & mask) ? "yes" : "no")));
((ev->state & mask) ? "yes" : "no"),
window.get_title()));
/* This exists to allow us to override the way GTK handles
key events. The normal sequence is: