You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Patch 5/6 xfree86: libseat support, wire-up seatd-libseat.h into Xserver
Add necessary code into Xserver to support libseat (this time enabling
functionality).
Code used from Devuan repository + local changes to make functional in Xlibre
Co-Authored-By: Mark Hindley <[email protected]>
Co-Authored-By: Ralph Ronnquist <[email protected]>
Signed-off-By: Tautvis <[email protected]>
FatalError("parse_vt_settings: Cannot open /dev/tty0 (%s)\n",
120
+
FatalError("parse_vt_settings: Cannot open /dev/tty0 (%s), maybe missing for ex. '-seat seat0 -keeptty' parameters? (in case trying to run uid !=0 mode)\n",
118
121
strerror(errno));
119
122
}
120
123
@@ -213,6 +216,11 @@ xf86OpenConsole(void)
213
216
i++;
214
217
}
215
218
219
+
220
+
/* If libseat is in control, it handles VT switching. */
221
+
if (seatd_libseat_controls_session())
222
+
return;
223
+
216
224
if (xf86Info.consoleFd<0)
217
225
FatalError("xf86OpenConsole: Cannot open virtual console"
218
226
" %d (%s)\n", xf86Info.vtno, strerror(errno));
@@ -306,7 +314,7 @@ xf86CloseConsole(void)
306
314
structvt_statvts;
307
315
intret;
308
316
309
-
if (xf86Info.ShareVTs) {
317
+
if (xf86Info.ShareVTs||seatd_libseat_controls_session()) {
0 commit comments