chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
login: revert lazy session-activation on non-VT seats
[elogind.git]
/
src
/
login
/
logind-seat.c
diff --git
a/src/login/logind-seat.c
b/src/login/logind-seat.c
index b30c4ce9e8925b5ec57dbd8b7b8e87370afc87bb..ca0e8d7fcfdd0fc2ee2d24938c2845bf5c7596a9 100644
(file)
--- a/
src/login/logind-seat.c
+++ b/
src/login/logind-seat.c
@@
-413,8
+413,8
@@
int seat_attach_session(Seat *s, Session *session) {
seat_send_changed(s, "Sessions", NULL);
/* On seats with VTs, the VT logic defines which session is active. On
seat_send_changed(s, "Sessions", NULL);
/* On seats with VTs, the VT logic defines which session is active. On
- * seats without VTs, we automatically activate
the first session
. */
- if (!seat_has_vts(s)
&& !s->active
)
+ * seats without VTs, we automatically activate
new sessions
. */
+ if (!seat_has_vts(s))
seat_set_active(s, session);
return 0;
seat_set_active(s, session);
return 0;