From bd725be93b76a3844f4d865355ff814ff2388ad6 Mon Sep 17 00:00:00 2001 From: James Guillochon Date: Wed, 9 Sep 2020 12:25:13 -0400 Subject: [PATCH] Be able to record whole screen (rather than top left 1/4) on double res screens --- kazam/backend/prefs.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/kazam/backend/prefs.py b/kazam/backend/prefs.py index 3859ad8..236123b 100644 --- a/kazam/backend/prefs.py +++ b/kazam/backend/prefs.py @@ -314,15 +314,18 @@ def get_screens(self): for i in range(self.default_screen.get_n_monitors()): rect = self.default_screen.get_monitor_geometry(i) - self.logger.debug(" Monitor {0} - X: {1}, Y: {2}, W: {3}, H: {4}".format(i, - rect.x, - rect.y, - rect.width, - rect.height)) + scale = self.default_screen.get_monitor_scale_factor(i) + self.logger.debug(" Monitor {0} - X: {1}, Y: {2}, W: {3}, H: {4}, S: {5}".format(i, + rect.x, + rect.y, + rect.width, + rect.height, + scale)) self.screens.append({"x": rect.x, "y": rect.y, "width": rect.width, - "height": rect.height}) + "height": rect.height, + "scale": scale}) if self.default_screen.get_n_monitors() > 1: self.combined_screen = {"x": 0, "y": 0,