kmscon: pass vtnr to pty so XDG_VTNR is set
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 12 Jun 2013 13:53:03 +0000 (15:53 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 12 Jun 2013 13:53:03 +0000 (15:53 +0200)
commit4962213bace101fd2861c19cc0e4c057b15a2030
treefeacce7a15270701bd4d89d4ca54ee991bdbbf31
parent35eb595863af94a9b89cf00fecec21490fe0ffd7
kmscon: pass vtnr to pty so XDG_VTNR is set

We need to correctly set the VTNR for each new pty, otherwise the pty
cannot set the XDG_VTNR correctly. Note that we do this only for real VTs,
that is, vtnr > 0.

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