Skip to content

Commit

Permalink
Select mss display
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippThoelke committed Jan 30, 2025
1 parent 3d933f3 commit e0604cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goofi/nodes/inputs/videostream.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def process(self) -> Dict[str, Tuple[Any, Dict[str, Any]]]:
elif capture_mode == "screen":
screen_index = self.params.video_stream.device_index.value

with mss() as sct:
with mss(display=screen_index) as sct:
if screen_index >= len(sct.monitors):
print(f"Screen index {screen_index} is out of range.")

Expand Down

0 comments on commit e0604cd

Please sign in to comment.