From bbd981f01dd3989f4f1863a2d42d559989e94c26 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 21 Sep 2024 22:47:32 +0200 Subject: [PATCH] Fix crash when showing plugin UIs under wayland Signed-off-by: falkTX --- source/frontend/carla_host.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/frontend/carla_host.py b/source/frontend/carla_host.py index 4239026d30..5b279a676a 100644 --- a/source/frontend/carla_host.py +++ b/source/frontend/carla_host.py @@ -2733,8 +2733,10 @@ def showEvent(self, event): 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):