13
0

fix bigclockwindow's lack of hiding, set ArdourWindow to just-hide-on-delete and add a bit of visibility tracking debugging

This commit is contained in:
Paul Davis 2013-05-05 15:07:52 -04:00
parent 40944574c6
commit 074ef3c859
3 changed files with 7 additions and 1 deletions

View File

@ -25,6 +25,7 @@
#include "ardour_window.h" #include "ardour_window.h"
#include "ardour_ui.h" #include "ardour_ui.h"
#include "keyboard.h" #include "keyboard.h"
#include "utils.h"
using namespace std; using namespace std;
using namespace Gtk; using namespace Gtk;
@ -90,6 +91,8 @@ ArdourWindow::init ()
set_type_hint (Gdk::WINDOW_TYPE_HINT_UTILITY); set_type_hint (Gdk::WINDOW_TYPE_HINT_UTILITY);
signal_delete_event().connect (sigc::bind (sigc::ptr_fun (just_hide_it), this));
ARDOUR_UI::CloseAllDialogs.connect (sigc::mem_fun (*this, &ArdourWindow::hide)); ARDOUR_UI::CloseAllDialogs.connect (sigc::mem_fun (*this, &ArdourWindow::hide));
} }

View File

@ -53,6 +53,8 @@ BigClockWindow::BigClockWindow (AudioClock& c)
void void
BigClockWindow::on_unmap () BigClockWindow::on_unmap ()
{ {
ArdourWindow::on_unmap ();
PublicEditor::instance().reset_focus (); PublicEditor::instance().reset_focus ();
} }

View File

@ -16,7 +16,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include <iostream>
#include <gtkmm/window.h> #include <gtkmm/window.h>
#include "gtkmm2ext/visibility_tracker.h" #include "gtkmm2ext/visibility_tracker.h"
@ -35,6 +35,7 @@ bool
VisibilityTracker::handle_visibility_notify_event (GdkEventVisibility* ev) VisibilityTracker::handle_visibility_notify_event (GdkEventVisibility* ev)
{ {
_visibility = ev->state; _visibility = ev->state;
std::cerr << "VT: " << _window.get_title() << " vis event, fv = " << fully_visible() << " pv = " << partially_visible() << " nv = " << not_visible() << std::endl;
return false; return false;
} }