Skip to content

Commit

Permalink
Meta: Disable "Zoom To Fit" when using the gtk display backend
Browse files Browse the repository at this point in the history
This option causes the window to not resize automatically on guest
display resolution changes.
QEMU has this option enabled by default when using virtio-gpu.
  • Loading branch information
spholz committed Jan 6, 2025
1 parent fd78968 commit 94a5e88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Meta/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,10 @@ def set_up_screens(config: Configuration):
else:
config.display_backend = "gtk,gl=off"

# Disable "Zoom To Fit" because it breaks absolute mouse input and looks ugly.
if config.display_backend.startswith("gtk"):
config.display_backend += ",zoom-to-fit=off"


def set_up_display_device(config: Configuration):
config.enable_gl = environ.get("SERENITY_GL") == "1"
Expand Down

0 comments on commit 94a5e88

Please sign in to comment.