X-Git-Url: https://git.ralfj.de/lilass.git/blobdiff_plain/6adc8bd3434dec9bc70c4f8f5adc0e54f990339b..158f0efbe4109a5d3df516404caa8567ddf5e03c:/database.py?ds=sidebyside diff --git a/database.py b/database.py index c65b4b9..e4ec011 100644 --- a/database.py +++ b/database.py @@ -60,7 +60,7 @@ class Database: _, intres, extres, mode, extprim = result intres = Resolution.fromDatabase(intres) # this method is safe for NULLs extres = Resolution.fromDatabase(extres) - mode = RelativeScreenPosition(mode) + mode = RelativeScreenPosition(mode) if mode else None extprim = bool(extprim) # 0 => False, 1 => True return ScreenSetup(intres, extres, mode, extprim) def __exit__(self, type, value, tb):