From a3468e870ca08ee3c17b245aa5b0f77b31bda16f Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Wed, 28 Oct 2026 19:33:26 -0700 Subject: [PATCH] feat(e2e): say which display of the Windows guest can change mode --- e2e/platforms/qemu_windows/windows_platform.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/e2e/platforms/qemu_windows/windows_platform.py b/e2e/platforms/qemu_windows/windows_platform.py index 284391af..5fce440a 100644 --- a/e2e/platforms/qemu_windows/windows_platform.py +++ b/e2e/platforms/qemu_windows/windows_platform.py @@ -222,6 +222,12 @@ class WindowsPlatform: # the daemon watches the file it was started with and reads it again self._agent.put_file(local, CONFIG_PATH) + def resizable_display(self) -> int | None: + """The index of a display whose mode can change: the second, which is a + QXL display. The first is the basic display adapter, with one mode, and + there is no second until one is plugged in.""" + return 1 if len(self.displays()) > 1 else None + def resize_display(self, index: int, width: int, height: int) -> None: """Changes the mode of display `index` and returns when the operating system has it. Only a display of a QXL device lists modes: the first