Signed-off-by: Gijs Vermeulen gijsvrm@gmail.com --- programs/winecfg/x11drvdlg.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
diff --git a/programs/winecfg/x11drvdlg.c b/programs/winecfg/x11drvdlg.c index fbc6716e94e..74ccfb77bf5 100644 --- a/programs/winecfg/x11drvdlg.c +++ b/programs/winecfg/x11drvdlg.c @@ -77,6 +77,21 @@ static void update_gui_for_desktop_mode(HWND dialog) WINE_TRACE("\n"); updating_ui = TRUE;
+#ifdef __APPLE__ + { + char *tmp; + + tmp = get_reg_key(HKEY_CURRENT_USER, "Software\Wine\Drivers", "Graphics", NULL); + if (!tmp || (tmp && !strncmp(tmp, "mac", 3))) + { + disable(IDC_ENABLE_DESKTOP); + if (tmp) HeapFree(GetProcessHeap(), 0, tmp); + updating_ui = FALSE; + return; + } + } +#endif + buf = get_reg_keyW(config_key, explorer_desktopsW, desktop_name, NULL); if (buf && (bufindex = strchrW(buf, 'x'))) {