Mark window invisible after deleting it

This fixes an issue when destroying VST plugin UIs
rather than hiding them. Even though is hidden before destroying it,
the vistracker is also destroyed in the same function call, before
the event can be processed. The window state remains visible="1"
This commit is contained in:
Robin Gareus 2022-10-21 18:11:19 +02:00
parent ace2cc095c
commit 03642d3707
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -211,6 +211,7 @@ WindowProxy::drop_window ()
_window = 0;
delete vistracker;
vistracker = 0;
_visible = false;
}
}