We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c616268 commit 6e3db41Copy full SHA for 6e3db41
src/main.c
@@ -105,6 +105,15 @@ int main(int argc, char *argv[])
105
bind_textdomain_codeset(PACKAGE, "UTF-8");
106
textdomain(PACKAGE);
107
#endif
108
+
109
+ /* Auto-detect macOS and set GDK backend to Quartz for native rendering */
110
+#ifdef __APPLE__
111
+ /* Only set if not already defined by user */
112
+ if (g_getenv("GDK_BACKEND") == NULL) {
113
+ g_setenv("GDK_BACKEND", "quartz", 0);
114
+ }
115
+#endif
116
117
gtk_init(&argc, &argv);
118
119
context = g_option_context_new("");
0 commit comments