* [PATCH] ui/gtk: Fix resolution change in fullscreen
@ 2021-12-19 17:21 Jindřich Makovička
0 siblings, 0 replies; only message in thread
From: Jindřich Makovička @ 2021-12-19 17:21 UTC (permalink / raw)
To: qemu-devel; +Cc: Jindřich Makovička
When the guest resolution changes and the UI is in full screen,
do not update the size hints. The gfx.scale_x and gfx.scale_y
variables are still wrong as they will be only recomputed on
gd_draw_event.
Just keep the window in fullscreen mode instead.
Signed-off-by: Jindřich Makovička <makovick@gmail.com>
---
ui/gtk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/gtk.c b/ui/gtk.c
index 428f02f2df..12621596e3 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -266,7 +266,7 @@ static void gd_update_geometry_hints(VirtualConsole *vc)
GtkWindow *geo_window;
if (vc->type == GD_VC_GFX) {
- if (!vc->gfx.ds) {
+ if (!vc->gfx.ds || s->full_screen) {
return;
}
if (s->free_scale) {
--
2.34.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-19 17:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-19 17:21 [PATCH] ui/gtk: Fix resolution change in fullscreen Jindřich Makovička
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).