2022-01-12 20:39:31 +01:00
|
|
|
Index: gnome-session-41.3/tools/gnome-session-check-accelerated.c
|
2018-03-14 11:00:20 +01:00
|
|
|
===================================================================
|
2022-01-12 20:39:31 +01:00
|
|
|
--- gnome-session-41.3.orig/tools/gnome-session-check-accelerated.c
|
|
|
|
+++ gnome-session-41.3/tools/gnome-session-check-accelerated.c
|
2018-03-14 11:00:20 +01:00
|
|
|
@@ -147,7 +147,7 @@ main (int argc, char **argv)
|
|
|
|
* Also make sure that we don't read cached information about the first GPU
|
|
|
|
* when requesting information about the second.
|
|
|
|
*/
|
|
|
|
- if (is_discrete_gpu_check () || g_strcmp0 (g_getenv ("XDG_SESSION_TYPE"), "x11") != 0) {
|
|
|
|
+ if (is_discrete_gpu_check () || g_strcmp0 (g_getenv ("XDG_SESSION_TYPE"), "wayland") == 0) {
|
2022-01-12 20:39:31 +01:00
|
|
|
g_autofree char *discrete_renderer_string = get_gtk_gles_renderer ();
|
|
|
|
if (discrete_renderer_string) {
|
|
|
|
g_print ("%s", discrete_renderer_string);
|