def get_info(self): info = { "desktop_size": self.desktop_size or "", "desktops": self.desktops, "desktop_names": self.desktop_names, "randr_notify": self.randr_notify, } info.update(get_screen_info(self.screen_sizes)) if self.desktop_mode_size: info["desktop_mode_size"] = self.desktop_mode_size if self.desktop_size_unscaled: info["desktop_size"] = {"unscaled": self.desktop_size_unscaled} return info
def get_info(self) -> dict: info = { "vertical-refresh": self.vrefresh, "desktop_size": self.desktop_size or "", "desktops": self.desktops, "desktop_names": self.desktop_names, "randr_notify": self.randr_notify, "opengl": self.opengl_props, } info.update(get_screen_info(self.screen_sizes)) if self.desktop_mode_size: info["desktop_mode_size"] = self.desktop_mode_size if self.desktop_size_unscaled: info["desktop_size"] = {"unscaled": self.desktop_size_unscaled} return info