diff options
| author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-08-30 13:37:59 +0400 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-09-04 13:52:48 +0400 |
| commit | cfde05d15bbad620f87592edc2882611acbacc53 (patch) | |
| tree | 8bf456b19e976604fc4b3591ad170e121e915a6a /ui/sdl2-input.c | |
| parent | 7fa4b8041b870951642515e0954d274ec4d599b1 (diff) | |
| download | focaccia-qemu-cfde05d15bbad620f87592edc2882611acbacc53.tar.gz focaccia-qemu-cfde05d15bbad620f87592edc2882611acbacc53.zip | |
ui/console: allocate ui_timer in QemuConsole
Although at this point only QemuGraphicConsole have hw_ops that implements ui_info() callback, it makes sense to keep the code in the base QemuConsole, to simplify conditions for the caller. As of now, the code didn't reach a NULL timer because dpy_set_ui_info() checks if dpy_ui_info_supported() (hw_ops->ui_info != NULL), which is false for text_console_ops. This is a bit fragile, let simply allocate and free the timer in the base class. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20230830093843.3531473-26-marcandre.lureau@redhat.com>
Diffstat (limited to 'ui/sdl2-input.c')
0 files changed, 0 insertions, 0 deletions