Browse Source

Fix crash when showing plugin UIs under wayland

Signed-off-by: falkTX <falktx@falktx.com>
pull/1933/head
falkTX 1 month ago
parent
commit
a607ce4270
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      source/frontend/carla_host.py

+ 3
- 1
source/frontend/carla_host.py View File

@@ -2842,8 +2842,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):


Loading…
Cancel
Save