mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-19 15:18:40 +01:00
feat(e2e): say which display of the Windows guest can change mode
This commit is contained in:
1 parent
f0f369f606
commit
a3468e870c
1 file changed
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user