From 4a96a6beedb82ccb2df60a1b358e5ff7741a0191 Mon Sep 17 00:00:00 2001 From: Constantin Berhard Date: Mon, 16 Nov 2015 16:29:51 +0100 Subject: [PATCH 1/1] minor fixes --- screen.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/screen.py b/screen.py index e161fcc..9942e98 100644 --- a/screen.py +++ b/screen.py @@ -18,7 +18,6 @@ import re, subprocess from enum import Enum -from functools import total_ordering ## utility functions @@ -241,7 +240,7 @@ class ScreenSituation: internalRes = self.internalResolutions() externalRes = self.externalResolutions() assert externalRes is not None - return sorted(set(res for res in externalRes if res in internalRes), key=lambda r: -r.pixelCount()) + return sorted(set(externalRes).intersection(internalRes), key=lambda r: -r.pixelCount()) # compute the xrandr call def forXrandr(self, setup): -- 2.30.2