mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
console: spice: Handle older spice-gtk desktop resolution
This commit is contained in:
parent
22db8a32ec
commit
b54ef7216d
@ -476,7 +476,8 @@ class SpiceViewer(Viewer):
|
||||
return
|
||||
|
||||
def get_desktop_resolution(self):
|
||||
if not self.display_channel:
|
||||
if (not self.display_channel or
|
||||
not has_property(self.display_channel, "width")):
|
||||
return None
|
||||
return self.display_channel.get_properties("width", "height")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user