mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
console: Fix spice scaling
Actually scale, not try and resize guest resolution. We will want to add new UI or smarts to enable that.
This commit is contained in:
parent
e863c0554d
commit
64f201eff8
@ -526,10 +526,15 @@ class SpiceViewer(Viewer):
|
||||
self.spice_session.connect()
|
||||
|
||||
def get_scaling(self):
|
||||
return self.display.get_property("resize-guest")
|
||||
if not has_property(self.display, "scaling"):
|
||||
return False
|
||||
return self.display.get_property("scaling")
|
||||
|
||||
def set_scaling(self, scaling):
|
||||
self.display.set_property("resize-guest", scaling)
|
||||
if not has_property(self.display, "scaling"):
|
||||
logging.debug("Spice version doesn't support scaling.")
|
||||
return
|
||||
self.display.set_property("scaling", scaling)
|
||||
|
||||
|
||||
class vmmConsolePages(vmmGObjectUI):
|
||||
|
Loading…
Reference in New Issue
Block a user