Skip to content

Commit

Permalink
fix single monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Nov 23, 2023
1 parent a3e172e commit ace3578
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/module/screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ def _update_resolution_event(flag=None):
w = int(resolution.split("x")[0])
h = int(resolution.split("x")[1])
update_window_resolution(w, h)
set_window_monitor(0)
return
if get("mirror", True, "screen") and not is_virtual_machine():
monitor.mirror()
else:
i = int(float(get("default-monitor", "0", "screen")))
if len(monitor.get_monitors()) < i:
i = len(monitor.get_monitors()) -1
monitor.init_monitor()
set_window_monitor(i)

Expand Down

0 comments on commit ace3578

Please sign in to comment.