From 7016388210d823cce101c1008c211ca542e239ff Mon Sep 17 00:00:00 2001 From: The_miro Date: Fri, 26 Jun 2026 08:34:34 +0200 Subject: [PATCH] fix(monitor-manager): account for scale when computing logical monitor size logical_width/height now divide physical pixels by scale so the canvas correctly represents the compositor's coordinate space (e.g. 3840px @1.5x is 2560 logical px wide, not 3840). Co-Authored-By: Claude Sonnet 4.6 --- desktopenvs/hyprlua/scripts/monitor-manager | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desktopenvs/hyprlua/scripts/monitor-manager b/desktopenvs/hyprlua/scripts/monitor-manager index 69110f5..d6ea8b0 100755 --- a/desktopenvs/hyprlua/scripts/monitor-manager +++ b/desktopenvs/hyprlua/scripts/monitor-manager @@ -114,14 +114,14 @@ class MonitorState: @property def logical_width(self) -> int: if (self.transform & 3) in (1, 3): - return self.height - return self.width + return round(self.height / self.scale) + return round(self.width / self.scale) @property def logical_height(self) -> int: if (self.transform & 3) in (1, 3): - return self.width - return self.height + return round(self.width / self.scale) + return round(self.height / self.scale) @property def mode_str(self) -> str: