fix(window): position window at monitor origin instead of offset
The previous offset of +50 pixels was unnecessary and could cause windows to be positioned incorrectly on smaller displays. This change aligns window placement with the actual monitor coordinates for more predictable positioning.
This commit is contained in:
+1
-1
@@ -508,7 +508,7 @@ class WindowManager:
|
||||
if SCREENINFO_AVAILABLE:
|
||||
try:
|
||||
m = get_monitors()[display_idx]
|
||||
root.geometry(f"+{m.x + 50}+{m.y + 50}")
|
||||
root.geometry(f"+{m.x}+{m.y}")
|
||||
position_set = True
|
||||
except IndexError:
|
||||
print(f"Watch Point: Monitor index {display_idx} is out of range. Falling back.")
|
||||
|
||||
Reference in New Issue
Block a user