File gdm-default-wm.patch of Package gdm

Index: gdm-3.31.91/daemon/gdm-session.c
===================================================================
--- gdm-3.31.91.orig/daemon/gdm-session.c	2019-02-21 20:44:22.000000000 +0100
+++ gdm-3.31.91/daemon/gdm-session.c	2019-02-27 07:46:21.417932330 +0100
@@ -43,6 +43,8 @@
 #include <glib-object.h>
 #include <gio/gio.h>
 
+#include "gdm-sysconfig.h"
+
 #include "gdm-session.h"
 #include "gdm-session-glue.h"
 #include "gdm-dbus-util.h"
@@ -562,6 +564,14 @@ get_fallback_session_name (GdmSession *s
                 }
         }
 
+        name = gdm_sysconfig_load_value ("/etc/sysconfig/windowmanager", "DEFAULT_WM");
+        if (name && get_session_command_for_name (self, name, NULL)) {
+                g_free (self->fallback_session_name);
+                self->fallback_session_name = name;
+                goto out;
+        }
+        g_free (name);
+
         name = g_strdup ("gnome");
         if (get_session_command_for_name (self, name, NULL)) {
                 g_free (self->fallback_session_name);