diff options
author | Markus Armbruster <armbru@redhat.com> | 2023-01-09 20:03:19 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2023-01-19 13:30:01 +0100 |
commit | 006e79cdf4273b52a854f36b119ebd2ea954ea92 (patch) | |
tree | 37133595c2e623b69062f57b45ab313b8efd99a3 /ui/input.c | |
parent | bcaf1fde57cfcb8952a8778ede0d4cf4136420b6 (diff) | |
download | qemu-006e79cdf4273b52a854f36b119ebd2ea954ea92.zip qemu-006e79cdf4273b52a854f36b119ebd2ea954ea92.tar.gz qemu-006e79cdf4273b52a854f36b119ebd2ea954ea92.tar.bz2 |
ui: Don't check for mode change after mouse_set error
hmp_mouse_set() doesn't bail out when it can't find a mouse.
Harmless, since qemu_input_check_mode_change() should be a no-op then.
Clean it up anyway.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20230109190321.1056914-16-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'ui/input.c')
-rw-r--r-- | ui/input.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -616,6 +616,7 @@ void hmp_mouse_set(Monitor *mon, const QDict *qdict) if (!found) { error_report("Mouse at index '%d' not found", index); + return; } qemu_input_check_mode_change(); |