From: R. Steve McKown Date: Fri, 23 Jan 2015 07:46:09 +0000 (-0700) Subject: Find and use preferred resolution X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=dispcfg.git;a=commitdiff_plain;h=571f97976ce783951f2fadd7c43733b19c6a274a Find and use preferred resolution --- diff --git a/xrandr_configure_outputs.py b/xrandr_configure_outputs.py index fcd67f1..7b7f03a 100644 --- a/xrandr_configure_outputs.py +++ b/xrandr_configure_outputs.py @@ -56,11 +56,11 @@ class OutputInfo(): token += 1 if len(size) == 4: self.enabled = True - self.width = int(size[0]) - self.height = int(size[1]) - self.posx = int(size[2]) - self.posy = int(size[3]) - elif self.connected and not self.enabled: + #self.width = int(size[0]) + #self.height = int(size[1]) + #self.posx = int(size[2]) + #self.posy = int(size[3]) + elif self.connected and self.width < 0: size = re.split('x', tokens[0]) if len(size) == 2: self.width = int(size[0])