Skip to content

Commit

Permalink
Fix crash when showing plugin UIs under wayland
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Sep 21, 2024
1 parent 7d3b067 commit bbd981f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/frontend/carla_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit bbd981f

Please sign in to comment.