* device assigned to a seat and write a configuration file
* from it and then spawn the real X server. */
+ /* If this file is removed, don't forget to remove the code
+ * that invokes this in gdm and other display managers. */
+
for (i = 1; i < argc; i++)
if (streq(argv[i], "-seat"))
seat = argv[i+1];
dn = udev_device_get_devnode(d);
- if (!dn) {
+ if (dn) {
device_node = strdup(dn);
if (!device_node) {
udev_device_unref(d);
"Section \"ServerFlags\"\n"
" Option \"AutoAddDevices\" \"True\"\n"
" Option \"AllowEmptyInput\" \"True\"\n"
+ " Option \"DontVTSwitch\" \"True\"\n"
+ "EndSection\n"
+ "Section \"InputClass\"\n"
+ " Identifier \"Force Input Devices to Seat\"\n"
+ " Option \"GrabDevice\" \"True\"\n"
"EndSection\n",
device_node);