gdctl: Make MonitorMode.dimension an actual Dimension
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4302>
This commit is contained in:
parent
c9c7768418
commit
078ba5ea88
@ -298,7 +298,7 @@ class MonitorMode:
|
|||||||
def from_variant(cls, variant):
|
def from_variant(cls, variant):
|
||||||
return cls(
|
return cls(
|
||||||
name=variant[0],
|
name=variant[0],
|
||||||
resolution=(variant[1], variant[2]),
|
resolution=Dimension(variant[1], variant[2]),
|
||||||
refresh_rate=variant[3],
|
refresh_rate=variant[3],
|
||||||
preferred_scale=variant[4],
|
preferred_scale=variant[4],
|
||||||
supported_scales=variant[5],
|
supported_scales=variant[5],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user