diff --git a/source/frontend/carla_host.py b/source/frontend/carla_host.py index 4239026d3..5b279a676 100644 --- a/source/frontend/carla_host.py +++ b/source/frontend/carla_host.py @@ -2733,8 +2733,10 @@ class HostWindow(QMainWindow): if MACOS: nsViewPtr = int(self.winId()) winIdStr = "%x" % gCarla.utils.cocoa_get_window(nsViewPtr) - else: + elif WINDOWS or QApplication.platformName() == "xcb": winIdStr = "%x" % int(self.winId()) + else: + winIdStr = "0" self.host.set_engine_option(ENGINE_OPTION_FRONTEND_WIN_ID, 0, winIdStr) def hideEvent(self, event):