Correct logic error leading to wrong display server preference getting chosen

This commit is contained in:
Ray Strode 2021-07-27 07:09:30 -04:00
parent 1b45c3bcef
commit 5ed4a6291a
2 changed files with 7 additions and 3 deletions

View File

@ -67,7 +67,7 @@ index 0bb3851f..f2da3b6e 100644
- if (wayland_enabled && g_file_test ("/usr/bin/Xwayland", G_FILE_TEST_IS_EXECUTABLE) )
- session_types[number_of_session_types++] = "wayland";
+ if (wayland_enabled && g_file_test ("/usr/bin/Xwayland", G_FILE_TEST_IS_EXECUTABLE)) {
+ session_types[i] = "wayland";
+ session_types[i] = "wayland"; continue;
+ }
}
}
@ -81,7 +81,7 @@ index 0bb3851f..f2da3b6e 100644
- if (xorg_enabled && g_file_test ("/usr/bin/Xorg", G_FILE_TEST_IS_EXECUTABLE) )
- session_types[number_of_session_types++] = "x11";
+ if (xorg_enabled && g_file_test ("/usr/bin/Xorg", G_FILE_TEST_IS_EXECUTABLE)) {
+ session_types[i] = "x11";
+ session_types[i] = "x11"; continue;
+ }
}
}

View File

@ -11,7 +11,7 @@
Name: gdm
Epoch: 1
Version: 40.0
Release: 4%{?dist}
Release: 5%{?dist}
Summary: The GNOME Display Manager
License: GPLv2+
@ -307,6 +307,10 @@ fi
%{_libdir}/pkgconfig/gdm-pam-extensions.pc
%changelog
* Tue Jul 27 2021 Ray Strode <rstrode@redhat.com> - 1:40.0-5
- Correct logic error leading to wrong display server preference
getting chosen.
* Thu Jul 22 2021 Ray Strode <rstrode@redhat.com> - 1:40.0-4
- Allow vendor nvidia driver users the ability to pick wayland sessions
without editing udev