seat: allow calling go_foreground if already in foreground
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 17 Nov 2012 19:13:27 +0000 (20:13 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 17 Nov 2012 19:13:27 +0000 (20:13 +0100)
commit527a73120bcdd3e32fc2e36a19a32e45f2c8803d
tree18d1601afd335dd778d7098c99599a6acfb495f9
parentc7707560ded28cd2e8ad9ced1b847a26371f294e
seat: allow calling go_foreground if already in foreground

If we are asleep and in foreground, go_foreground() should return success
so we can safely unload asynchronous sessions. Otherwise, we wouldn't be
able to handle them properly while being inactive or we would need a whole
bunch of other checks.

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