11From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22From: Kleis Auke Wolthuizen <
[email protected] >
33Date: Thu, 26 Oct 2023 17:00:00 +0200
4- Subject: [PATCH 1/2 ] Make gtk4-builder-tool optional
4+ Subject: [PATCH 1/4 ] Make gtk4-builder-tool optional
55
66
77diff --git a/docs/reference/gtk/images/meson.build b/docs/reference/gtk/images/meson.build
@@ -24,7 +24,7 @@ index 1111111..2222222 100644
2424From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2525From: Christoph Reiter <
[email protected] >
2626Date: Sat, 7 Sep 2024 13:39:22 +0200
27- Subject: [PATCH 2/2 ] Disable automatic font rendering settings
27+ Subject: [PATCH 2/4 ] Disable automatic font rendering settings
2828
2929To restore the old code taking Windows settings into account.
3030
@@ -35,12 +35,62 @@ diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
3535index 1111111..2222222 100644
3636--- a/gtk/gtksettings.c
3737+++ b/gtk/gtksettings.c
38- @@ -973 ,7 +973 ,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
38+ @@ -980 ,7 +980 ,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
3939 */
4040 pspecs[PROP_FONT_RENDERING] = g_param_spec_enum ("gtk-font-rendering", NULL, NULL,
4141 GTK_TYPE_FONT_RENDERING,
4242- GTK_FONT_RENDERING_AUTOMATIC,
4343+ GTK_FONT_RENDERING_MANUAL,
4444 GTK_PARAM_READWRITE);
4545
46- g_object_class_install_properties (gobject_class, NUM_PROPERTIES, pspecs);
46+ /**
47+
48+ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
49+ From: Christoph Reiter <
[email protected] >
50+ Date: Mon, 1 Sep 2025 08:32:52 +0200
51+ Subject: [PATCH 3/4] Disable dcomp by default
52+
53+ This is equivalent to setting the `GDK_DISABLE=dcomp` env.
54+
55+ See:
56+ https://gitlab.gnome.org/GNOME/gtk/-/issues/7567
57+ https://github.com/msys2/MINGW-packages/pull/25319
58+
59+ diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c
60+ index 1111111..2222222 100644
61+ --- a/gdk/win32/gdkdisplay-win32.c
62+ +++ b/gdk/win32/gdkdisplay-win32.c
63+ @@ -517,7 +517,7 @@
64+ const GUID my_IID_IDCompositionDevice = { 0xC37EA93A,0xE7AA,0x450D,0xB1,0x6F,0x97,0x46,0xCB,0x04,0x07,0xF3 };
65+ IDXGIDevice *dxgi_device;
66+
67+ - if (!gdk_has_feature (GDK_FEATURE_DCOMP))
68+ + if (!gdk_has_feature (GDK_FEATURE_DCOMP) || g_getenv ("GDK_WIN32_FORCE_DCOMP") == NULL)
69+ return;
70+
71+ hr_warn (ID3D11Device_QueryInterface (self->d3d11_device, &IID_IDXGIDevice, (void **) &dxgi_device));
72+
73+ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
74+ From: Dan Yeaw <
[email protected] >
75+ Date: Sun, 23 Nov 2025 15:26:12 -0500
76+ Subject: [PATCH 4/4] Windows: fix cairo crash with dcomp disabled
77+
78+ See: https://gitlab.gnome.org/GNOME/gtk/-/issues/7890
79+
80+ Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/gtk/-/commit/f071763fd69e8924c497b9b21e43ef8e80718eff]
81+
82+ diff --git a/gdk/win32/gdkcairocontext-win32.c b/gdk/win32/gdkcairocontext-win32.c
83+ index 1111111..2222222 100644
84+ --- a/gdk/win32/gdkcairocontext-win32.c
85+ +++ b/gdk/win32/gdkcairocontext-win32.c
86+ @@ -134,8 +134,9 @@ gdk_win32_cairo_context_surface_detach (GdkDrawContext *context)
87+ {
88+ GdkWin32CairoContext *self = GDK_WIN32_CAIRO_CONTEXT (context);
89+ GdkSurface *surface = gdk_draw_context_get_surface (context);
90+ + GdkWin32Display *display = GDK_WIN32_DISPLAY (gdk_draw_context_get_display (context));
91+
92+ - if (!GDK_SURFACE_DESTROYED (surface))
93+ + if (!GDK_SURFACE_DESTROYED (surface) && gdk_win32_display_get_dcomp_device (display))
94+ gdk_win32_surface_set_dcomp_content (GDK_WIN32_SURFACE (surface), NULL);
95+
96+ gdk_win32_com_clear (&self->staging_texture);
0 commit comments