mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
input: Allow to choose console with qemu_input_is_absolute
Although an input is routed depending on the console, qemu_input_is_absolute() had no mechanism to specify the console. Accept QemuConsole as an argument for qemu_input_is_absolute, and let the display know the absolute/relative state for a particular console. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20230921082936.28100-1-akihiko.odaki@daynix.com>
This commit is contained in:
parent
50d0bfd0ed
commit
0337e4123e
9 changed files with 33 additions and 49 deletions
2
ui/vnc.c
2
ui/vnc.c
|
@ -1771,7 +1771,7 @@ uint32_t read_u32(uint8_t *data, size_t offset)
|
|||
static void check_pointer_type_change(Notifier *notifier, void *data)
|
||||
{
|
||||
VncState *vs = container_of(notifier, VncState, mouse_mode_notifier);
|
||||
int absolute = qemu_input_is_absolute();
|
||||
int absolute = qemu_input_is_absolute(vs->vd->dcl.con);
|
||||
|
||||
if (vnc_has_feature(vs, VNC_FEATURE_POINTER_TYPE_CHANGE) && vs->absolute != absolute) {
|
||||
vnc_lock_output(vs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue