aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/.scripts')
-rwxr-xr-xscripts/.scripts/cycle-workspace_more_2.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/.scripts/cycle-workspace_more_2.py b/scripts/.scripts/cycle-workspace_more_2.py
index a8a46d1..fd2b13d 100755
--- a/scripts/.scripts/cycle-workspace_more_2.py
+++ b/scripts/.scripts/cycle-workspace_more_2.py
@@ -27,7 +27,7 @@ if sys.argv[1] == "right":
workspace_origin_width = workspace_origin['rect']['width']
next_workspace_start = workspace_origin_x + workspace_origin_width
for output in outputs:
- if output['rect']['x'] == next_workspace_start:
+ if next_workspace_start == output['rect']['x']:
workspace_destination = output
if sys.argv[1] == "left":
@@ -35,7 +35,8 @@ if sys.argv[1] == "left":
workspace_origin_width = workspace_origin['rect']['width']
next_workspace_start = workspace_origin_x - workspace_origin_width
for output in outputs:
- if output['rect']['x'] == next_workspace_start:
+ next_workspace_start = workspace_origin_x - output['rect']['width']
+ if next_workspace_start == output['rect']['x']:
workspace_destination = output
if (workspace_destination != workspace_origin):