diff --git a/BasiliskII/src/MacOSX/utils_macosx.mm b/BasiliskII/src/MacOSX/utils_macosx.mm index b2c66798..0674cf68 100644 --- a/BasiliskII/src/MacOSX/utils_macosx.mm +++ b/BasiliskII/src/MacOSX/utils_macosx.mm @@ -55,6 +55,7 @@ void disable_SDL2_macosx_menu_bar_keyboard_shortcuts() { } } +#ifdef VIDEO_ROOTLESS void make_window_transparent(SDL_Window * window) { if (!window) { @@ -73,6 +74,7 @@ void make_window_transparent(SDL_Window * window) CGColorRef clearColor = [NSColor clearColor].CGColor; NSWindow *cocoaWindow = wmInfo.info.cocoa.window; NSView *sdlView = cocoaWindow.contentView; + sdlView.wantsLayer = YES; sdlView.layer.backgroundColor = [NSColor clearColor].CGColor; if (SDL_GetWindowData(window, "observing") == NULL) { NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; @@ -127,6 +129,7 @@ void update_window_mask_rects(SDL_Window * window, int h, const std::vector