diff --git a/library/src/interactor_impl.cxx b/library/src/interactor_impl.cxx index 6404cee624..0ee5d4c069 100644 --- a/library/src/interactor_impl.cxx +++ b/library/src/interactor_impl.cxx @@ -81,6 +81,10 @@ class interactor_impl::internals this->VTKInteractor->SetInteractorStyle(this->Style); this->VTKInteractor->Initialize(); + // Some implementation (e.g. macOS) in VTK set the window name during initialization + // so we need to set the name right after initialization + this->Window.setWindowName("f3d"); + this->UIObserver->InstallObservers(this->VTKInteractor); // observe console event to trigger commands diff --git a/library/src/window_impl.cxx b/library/src/window_impl.cxx index 4a48d22858..21c3092acb 100644 --- a/library/src/window_impl.cxx +++ b/library/src/window_impl.cxx @@ -178,7 +178,6 @@ window_impl::window_impl(const options& options, const std::optional& type #endif this->Internals->RenWin->SetMultiSamples(0); // Disable hardware antialiasing this->Internals->RenWin->SetOffScreenRendering(offscreen); - this->Internals->RenWin->SetWindowName("f3d"); this->Internals->RenWin->AddRenderer(this->Internals->Renderer); this->Internals->Camera = std::make_unique(); this->Internals->Camera->SetVTKRenderer(this->Internals->Renderer);