[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 5/5] console: ignore ui_info updates which don't actu
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 5/5] console: ignore ui_info updates which don't actually update something |
Date: |
Fri, 10 Jun 2016 11:58:42 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
Message-id: address@hidden
---
ui/console.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/ui/console.c b/ui/console.c
index bf38579..ce1e105 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1453,16 +1453,21 @@ bool dpy_ui_info_supported(QemuConsole *con)
int dpy_set_ui_info(QemuConsole *con, QemuUIInfo *info)
{
assert(con != NULL);
- con->ui_info = *info;
+
if (!dpy_ui_info_supported(con)) {
return -1;
}
+ if (memcmp(&con->ui_info, info, sizeof(con->ui_info)) == 0) {
+ /* nothing changed -- ignore */
+ return 0;
+ }
/*
* Typically we get a flood of these as the user resizes the window.
* Wait until the dust has settled (one second without updates), then
* go notify the guest.
*/
+ con->ui_info = *info;
timer_mod(con->ui_timer, qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + 1000);
return 0;
}
--
1.8.3.1
- [Qemu-devel] [PULL 0/5] ui: misc bug fixes, Gerd Hoffmann, 2016/06/10
- [Qemu-devel] [PULL 4/5] ui/console-gl: Add support for big endian display surfaces, Gerd Hoffmann, 2016/06/10
- [Qemu-devel] [PULL 3/5] gtk: fix vte version check, Gerd Hoffmann, 2016/06/10
- [Qemu-devel] [PULL 5/5] console: ignore ui_info updates which don't actually update something,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 1/5] vnc: drop unused depth arg for set_pixel_format, Gerd Hoffmann, 2016/06/10
- [Qemu-devel] [PULL 2/5] ui: fix regression in printing VNC host/port on startup, Gerd Hoffmann, 2016/06/10
- Re: [Qemu-devel] [PULL 0/5] ui: misc bug fixes, Peter Maydell, 2016/06/10