Reverse the Spaces swipe direction

Pulling left now brings in the desktop on the right, and pulling right
the one on the left, like dragging the desktop.

Assisted-by: Claude Sonnet 5.5
Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
This commit is contained in:
yigid committed 2026-10-30 23:45:31 +03:00
1 parent 7224d7604e
commit 301614990a
1 file changed
+1 -1
+1 -1
View File
@@ -570,7 +570,7 @@ func buttonUp(_ d: Device, _ cid: UInt16) {
let t = config.gestureThreshold let t = config.gestureThreshold
if verbose { log("gesture dx=\(d.gx) dy=\(d.gy)") } if verbose { log("gesture dx=\(d.gx) dy=\(d.gy)") }
if abs(d.gx) < t && abs(d.gy) < t { perform(config.buttons[CID_GESTURE] ?? .missionControl) } if abs(d.gx) < t && abs(d.gy) < t { perform(config.buttons[CID_GESTURE] ?? .missionControl) }
else if abs(d.gx) > abs(d.gy) { perform(d.gx > 0 ? .nextSpace : .prevSpace) } else if abs(d.gx) > abs(d.gy) { perform(d.gx > 0 ? .prevSpace : .nextSpace) }
else { perform(d.gy < 0 ? .missionControl : .appExpose) } else { perform(d.gy < 0 ? .missionControl : .appExpose) }
} }