Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CNewFileSelector blocks all UI interaction on linux (including other applications) #332

Open
Distb opened this issue Oct 16, 2024 · 0 comments

Comments

@Distb
Copy link

Distb commented Oct 16, 2024

VST SDK 3.7
VSTGUI 4.14
Linux Mint 21.3 xfce

My VST plugin wants to show a file open dialog in response to the user clicking a button. In my editor's IControlListener::valueChanged() method, I am detecting button release and doing something like this:

VSTGUI::CNewFileSelector * selector = VSTGUI::CNewFileSelector::create( getFrame(), VSTGUI::CNewFileSelector::kSelectFile );
if( selector )
{
    selector->setDefaultExtension( VSTGUI::CFileExtension( "txt", "txt" ) );
    selector->setTitle( "Select an Instrument File" );
    selector->runModal();
}

When the button is clicked on linux (in editorhost or ardour), a file open dialog is displayed, but this locks up the entire UI -- the cursor moves in response to the mouse, but clicks don't appear to be delivered to any applications. I have to use Ctrl+Alt+Fn to change to a text terminal and kill the host application if I want any applications to be usable again.

Using selector->run( CalbackFunc && ) behaves the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant