seat: allow sessions to switch between background/foreground
authorDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 19 Nov 2012 12:10:51 +0000 (13:10 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 19 Nov 2012 12:10:51 +0000 (13:10 +0100)
commit080ecfd6370d2a4248a33d6c7d284d8ae44153f0
tree667e8d9d6a1ee968b1fd7e96cc42b38dca4b3b60
parent275692ee702890960e7cc06f3690f3e85be742e1
seat: allow sessions to switch between background/foreground

Two new helpers allow sessions to mark them as background and foreground
sessions. This will immediately switch them into the new state.

The internal infrastructure was already available, but we currently always
used foreground sessions.

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