]> git.ipfire.org Git - thirdparty/qemu.git/commit
ui/gtk: Draw guest frame at refresh cycle
authorDongwon Kim <dongwon.kim@intel.com>
Fri, 26 Apr 2024 22:50:59 +0000 (15:50 -0700)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 11 Jun 2024 07:12:47 +0000 (10:12 +0300)
commitfdbeeb454c9650f0fe96bbb4862d62eadcc33531
treece6f42e8e0b35a0ec8b791644be9cbad525bd0ee
parentfa275f22111fbdfd9894411471ca8bbe6aeac8fa
ui/gtk: Draw guest frame at refresh cycle

Draw routine needs to be manually invoked in the next refresh
if there is a scanout blob from the guest. This is to prevent
a situation where there is a scheduled draw event but it won't
happen bacause the window is currently in inactive state
(minimized or tabified). If draw is not done for a long time,
gl_block timeout and/or fence timeout (on the guest) will happen
eventually.

v2: Use gd_gl_area_draw(vc) in gtk-gl-area.c

Suggested-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20240426225059.3871283-1-dongwon.kim@intel.com>
(cherry picked from commit 77bf310084dad38b3a2badf01766c659056f1cf2)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
ui/gtk-egl.c
ui/gtk-gl-area.c