seat: allow asynchronous command scheduling
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 2 Dec 2012 11:05:18 +0000 (12:05 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 2 Dec 2012 11:05:18 +0000 (12:05 +0100)
commit4ceedc188d4c5b364668e5e2117a1d4151c837c3
treee907b4568267b1670566d4d949dba0a04d75863c
parent84a006777b0e18c1ffa49f3296534a7938c01b09
seat: allow asynchronous command scheduling

When an asynchronous session-deactivation is finished, we need to know
which task to do now. As we cannot let the caller decide, because we are
asynchronous, we have to remember the task.

Three tasks are defined now but this can be extended. We reset the task
after the current session got deactivated. This guarantees that we never
have pending schedules but always return to a sane default even if we
missed a notification.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/kmscon_seat.c