diff options
| author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2021-04-13 20:39:11 +0400 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2021-12-21 10:50:21 +0400 |
| commit | ca19ef52999251443b511b53e7b0498dd247261e (patch) | |
| tree | 910c07bed1bebacff9f6a873b5b2bc781d28b04e /ui/console.c | |
| parent | 46e4609e339f424a0e19c1fb657ccad6a43f7364 (diff) | |
| download | focaccia-qemu-ca19ef52999251443b511b53e7b0498dd247261e.tar.gz focaccia-qemu-ca19ef52999251443b511b53e7b0498dd247261e.zip | |
ui: do not delay further remote resize
A remote client, such as Spice, will already avoid flooding the stream by delaying the resize requests. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/console.c')
| -rw-r--r-- | ui/console.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/console.c b/ui/console.c index 29a3e3f0f5..dcc21eb5b2 100644 --- a/ui/console.c +++ b/ui/console.c @@ -1538,7 +1538,7 @@ const QemuUIInfo *dpy_get_ui_info(const QemuConsole *con) return &con->ui_info; } -int dpy_set_ui_info(QemuConsole *con, QemuUIInfo *info) +int dpy_set_ui_info(QemuConsole *con, QemuUIInfo *info, bool delay) { if (con == NULL) { con = active_console; @@ -1558,7 +1558,8 @@ int dpy_set_ui_info(QemuConsole *con, QemuUIInfo *info) * go notify the guest. */ con->ui_info = *info; - timer_mod(con->ui_timer, qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + 1000); + timer_mod(con->ui_timer, + qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + (delay ? 1000 : 0)); return 0; } |