Fix switch custom -> generic plugin UI

See also e635571f2f and bd898a68
This commit is contained in:
Robin Gareus 2022-10-11 20:40:25 +02:00
parent 3b2eb7507b
commit 45398fb65c
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 2 additions and 1 deletions

View File

@ -4796,11 +4796,12 @@ ProcessorWindowProxy::get (bool create)
void
ProcessorWindowProxy::show_the_right_window (bool show_not_toggle)
{
_unmap_connection.disconnect ();
if (_window && (is_custom != want_custom)) {
/* drop existing window - wrong type */
set_state_mask (Gtkmm2ext::WindowProxy::StateMask (state_mask () & ~WindowProxy::Size));
_unmap_connection.block ();
drop_window ();
_unmap_connection.unblock ();
}
if (_window && fully_visible () && show_not_toggle) {
return;