aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeodarZ <neodarz@neodarz.net>2018-04-09 23:17:08 +0200
committerNeodarZ <neodarz@neodarz.net>2018-04-09 23:17:08 +0200
commit99e92def6295c223bd01256a208f7fbfd8232679 (patch)
tree9804c301ce02d421fc4570daf123a02e6d3894b4
parent122ac96915be952782b3dd8117badc9c3683a365 (diff)
downloaddotfiles_ascii-99e92def6295c223bd01256a208f7fbfd8232679.tar.xz
dotfiles_ascii-99e92def6295c223bd01256a208f7fbfd8232679.zip
Fix dection left and right workspace
Diffstat (limited to '')
-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):