gdctl: Use Dimenison.__str__() to print mode dimension
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4302>
This commit is contained in:
@ -920,12 +920,11 @@ class MonitorsState:
|
|||||||
if not show_properties:
|
if not show_properties:
|
||||||
return
|
return
|
||||||
|
|
||||||
width, height = mode.resolution
|
|
||||||
print_data(
|
print_data(
|
||||||
level=3,
|
level=3,
|
||||||
is_last=False,
|
is_last=False,
|
||||||
lines=lines,
|
lines=lines,
|
||||||
data=f"Dimension: {width}x{height}",
|
data=f"Dimension: {mode.resolution}",
|
||||||
)
|
)
|
||||||
print_data(
|
print_data(
|
||||||
level=3,
|
level=3,
|
||||||
|
Reference in New Issue
Block a user