Fix: Add /multimon flag with /monitors: to match working bash script
This commit is contained in:
@@ -327,14 +327,6 @@ class RDPClient:
|
||||
# For debugging, log the monitor layout
|
||||
self.logger.info(f"Monitor layout detected: {[(m[0], m[1], 'primary' if m[2] else 'secondary') for m in monitors]}")
|
||||
|
||||
# TEST: Use monitors 0,2 instead of 1,2
|
||||
if count == 2:
|
||||
selected_str = "0,2"
|
||||
self.logger.info(f"TEST: Forcing selection of monitors 0,2 for testing")
|
||||
elif count == 3:
|
||||
selected_str = "0,1,2"
|
||||
self.logger.info(f"TEST: Using all monitors 0,1,2")
|
||||
else:
|
||||
# Return the leftmost monitors (excluding position and primary flag)
|
||||
selected = [str(m[0]) for m in monitors[:count]]
|
||||
selected_str = ','.join(selected)
|
||||
@@ -921,10 +913,11 @@ Multi-Monitor Support:
|
||||
color_depth = conn.get("color_depth", 32)
|
||||
cmd.append(f"/bpp:{color_depth}")
|
||||
|
||||
# Multiple monitors - use /f + /monitors for fullscreen across specific monitors
|
||||
# Multiple monitors - use /multimon + /monitors for specific monitor selection (like working bash script)
|
||||
if use_specific_monitors:
|
||||
cmd.append("/multimon")
|
||||
cmd.append(f"/monitors:{monitor_list}")
|
||||
self.logger.info(f"Using fullscreen across specific monitors for {multimon}: {monitor_list}")
|
||||
self.logger.info(f"Using /multimon /monitors:{monitor_list} for {multimon} (like working bash script)")
|
||||
|
||||
elif multimon == "All Monitors":
|
||||
cmd.append("/multimon")
|
||||
|
||||
Reference in New Issue
Block a user