From: "Jindřich Makovička" <makovick@gmail.com>
To: qemu-devel@nongnu.org
Cc: "Jindřich Makovička" <makovick@gmail.com>
Subject: [PATCH] ui/gtk: Fix resolution change in fullscreen
Date: Sun, 19 Dec 2021 18:21:51 +0100 [thread overview]
Message-ID: <20211219172151.86922-1-makovick@gmail.com> (raw)
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
reply other threads:[~2021-12-19 17:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211219172151.86922-1-makovick@gmail.com \
--to=makovick@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).