Merge pull request #1704 from rindeal/patch-2

session/logind: specify seat exactly
This commit is contained in:
Scott Anderson 2019-05-22 12:50:47 +00:00 committed by GitHub
commit aa39dbd1e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,7 +136,7 @@ static bool logind_change_vt(struct wlr_session *base, unsigned vt) {
sd_bus_error error = SD_BUS_ERROR_NULL;
ret = sd_bus_call_method(session->bus, "org.freedesktop.login1",
"/org/freedesktop/login1/seat/self", "org.freedesktop.login1.Seat", "SwitchTo",
"/org/freedesktop/login1/seat/seat0", "org.freedesktop.login1.Seat", "SwitchTo",
&error, &msg, "u", (uint32_t)vt);
if (ret < 0) {
wlr_log(WLR_ERROR, "Failed to change to vt '%d'", vt);