From: Constantin Berhard Date: Mon, 16 Nov 2015 15:29:51 +0000 (+0100) Subject: minor fixes X-Git-Url: https://git.ralfj.de/lilass.git/commitdiff_plain/4a96a6beedb82ccb2df60a1b358e5ff7741a0191?hp=1f558aaf1deb7511d8d70646cc1ea97cfb8fecbd minor fixes --- 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):