Forward EventBox map/unmap requests to show/hide pianoroll GLCanvas

This commit is contained in:
Robin Gareus 2025-02-27 16:42:22 +01:00
parent e38a2b4b85
commit df5f8d48c9
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -427,6 +427,8 @@ Pianoroll::build_upper_toolbar ()
_contents.add (_toolbox);
_contents.signal_enter_notify_event().connect (sigc::mem_fun (*this, &Pianoroll::enter), false);
_contents.signal_unmap().connect ([this]() {_canvas_viewport->unmap ();}, false);
_contents.signal_map().connect ([this]() {_canvas_viewport->map ();}, false);
}
void