summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2023-04-24 12:07:06 +0200
committerCarlos Garnacho <carlosg@gnome.org>2023-04-24 12:07:06 +0200
commit57fdd7efd2d2ef05df86c60e36e200a15a9918a0 (patch)
treecdcec60915da486a0268b6b68c491b1cabc23352 /src
parentcca07612b8590d08caedf382e5ec22cff0f09eac (diff)
downloadmutter-57fdd7efd2d2ef05df86c60e36e200a15a9918a0.tar.gz
frames: Use cairo renderer on GTK frames
Going for the default GL renderer is known to trigger rendering artifacts using the NVidia proprietary driver. Since we don't have too many expectatives about frames being flashy (not to the point of mandating GL), resort to the cairo renderer in the mean time. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2976>
Diffstat (limited to 'src')
-rw-r--r--src/frames/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/frames/main.c b/src/frames/main.c
index d03299c5e..10e1dcae1 100644
--- a/src/frames/main.c
+++ b/src/frames/main.c
@@ -42,6 +42,8 @@ main (int argc,
GMainLoop *loop;
Display *xdisplay;
+ g_setenv ("GSK_RENDERER", "cairo", TRUE);
+
/* We do know the desired GDK backend, don't let
* anyone tell us otherwise.
*/