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:
parent
40944574c6
commit
074ef3c859
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user