cdev: fix delayed deactivation to update internal state

We need to set "active" to false during delayed deactivation, as
otherwise we have inconsistent state in respect to the seat subsystem.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-12-02 10:16:24 +01:00
parent 9ddbe5405a
commit fddd1f6fb4

View File

@ -805,8 +805,10 @@ static void ioctl_VT_RELDISP(struct cdev_client *client, fuse_req_t req,
{
if (client->pending_switch) {
client->pending_switch = false;
if (val > 0)
if (val > 0) {
client->active = false;
kmscon_session_notify_deactivated(client->s);
}
}
fuse_reply_ioctl(req, 0, NULL, 0);