ui: Fix default window_id value
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 14 Sep 2020 10:06:37 +0000 (12:06 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 14 Oct 2020 08:20:26 +0000 (10:20 +0200)
commit41d004d8af59885da2c21460a73898b1aa09690f
tree4cb23c03c0eb6be23d365acf566750d6d1a70ab2
parent33d72145d783457973e29aed703b84f820763f47
ui: Fix default window_id value

./chardev/baum.c expects the default window_id value to be -1, and not 0
which could be confused with a proper window id (when numbered from 0 by
the ui backend).

This fixes getting Braille output with the curses and gtk frontends.

Fixes: f29b3431f62 ("console: move window ID code from baum to sdl")
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200914100637.eeommoflirxrgaeh@function>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/console.c