aboutsummaryrefslogtreecommitdiff
path: root/libseat/backend
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-08-06 02:24:22 +0200
committerKenny Levinsen <kl@kl.wtf>2020-08-06 02:25:24 +0200
commit7d2668e3605a58d3744111664428d3f9baf6ac4a (patch)
tree234fc8000739b767012fb2d83325b647d145bac1 /libseat/backend
parent0fd525e85e9297c999c1b651a943743c68103729 (diff)
logind: Allow SwitchTo for all seats
Diffstat (limited to 'libseat/backend')
-rw-r--r--libseat/backend/logind.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/libseat/backend/logind.c b/libseat/backend/logind.c
index ea2821c..53b8d08 100644
--- a/libseat/backend/logind.c
+++ b/libseat/backend/logind.c
@@ -151,18 +151,13 @@ static int switch_session(struct libseat *base, int s) {
return -1;
}
- // Only seat0 has VTs associated with it
- if (strcmp(session->seat, "seat0") != 0) {
- return true;
- }
-
- int ret;
sd_bus_message *msg = NULL;
sd_bus_error error = SD_BUS_ERROR_NULL;
- ret = sd_bus_call_method(session->bus, "org.freedesktop.login1",
- "/org/freedesktop/login1/seat/seat0", "org.freedesktop.login1.Seat",
- "SwitchTo", &error, &msg, "u", (uint32_t)s);
+ int ret = sd_bus_call_method(session->bus, "org.freedesktop.login1",
+ "/org/freedesktop/login1/seat/seat0",
+ "org.freedesktop.login1.Seat", "SwitchTo", &error, &msg, "u",
+ (uint32_t)s);
sd_bus_error_free(&error);
sd_bus_message_unref(msg);