Skip to content

Commit

Permalink
ignore refresh-rate when adding a monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 26, 2024
1 parent 53a7e84 commit 3dd7abc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/x11/desktop/monitor_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ def _process_configure_monitor(self, proto, packet : PacketType) -> None:
resolution = packet[2]
if isinstance(resolution, str):
resolution = parse_resolution(resolution, self.refresh_rate)
assert isinstance(resolution, (tuple, list)) and len(resolution)==2
width, height = resolution
assert isinstance(resolution, (tuple, list)) and len(resolution) in (2, 3)
width, height = resolution[:2]
self.add_monitor(width, height)
else:
raise ValueError(f"unsupported 'configure-monitor' action {action!r}")
Expand Down

0 comments on commit 3dd7abc

Please sign in to comment.