Skip to contentSkip to conversation

ui/gtk: Fix resolution change in fullscreen

PATCH New Jindřich Makovička 1 participant 1 message Dec 19, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ui/gtk: Fix resolution change in fullscreen

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.

---
 ui/gtk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ui/gtk.c +1 -1
index 428f02f2df..12621596e3 100644
@@ -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) {
Signature · 1 line
2.34.1