Bjørn Lie
2b1d1a3c88
New stable release OBS-URL: https://build.opensuse.org/request/show/964236 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-session?expand=0&rev=338
14 lines
888 B
Diff
14 lines
888 B
Diff
Index: gnome-session-42.0/tools/gnome-session-check-accelerated.c
|
|
===================================================================
|
|
--- gnome-session-42.0.orig/tools/gnome-session-check-accelerated.c
|
|
+++ gnome-session-42.0/tools/gnome-session-check-accelerated.c
|
|
@@ -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) {
|
|
g_autofree char *discrete_renderer_string = get_gtk_gles_renderer (>k_gles_error);
|
|
if (discrete_renderer_string) {
|
|
g_print ("%s", discrete_renderer_string);
|