launcher-util: Initialize kb_mode also when weston-launch sets up tty
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 30 Apr 2014 17:40:39 +0000 (10:40 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 30 Apr 2014 17:40:39 +0000 (10:40 -0700)
commit9a14b8f4fa771368fc756bd1e49308dcf21ddd07
tree14c641632029c9b7f20cc96762c3891bb564518e
parentef6a7e46eb28d66ccb6d88fa81a55d1a106d632a
launcher-util: Initialize kb_mode also when weston-launch sets up tty

We need a valid kb_mode to restore to in case weston-launch dies and
weston has to clean up the tty.  We don't get a chance to read out the
kb mode before weston-launch changes it, but it's safe to assume that it's
always K_UNICODE.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=77455
src/launcher-util.c