1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-04-07 19:16:39 +00:00

Fixed vertical workspace swapping

This commit is contained in:
LDDestroier 2019-04-23 17:11:19 -04:00 committed by GitHub
parent aae0e44a31
commit d416695866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -729,6 +729,9 @@ local main = function()
if keysDown[keys.up] then
if instances[focus[2] - 1] then
if instances[focus[2] - 1][focus[1]] then
if keysDown[swapKey] then
swapInstances(0, -1)
end
focus[2] = focus[2] - 1
scroll[2] = scroll[2] + 1
keysDown[keys.up] = false
@ -741,6 +744,9 @@ local main = function()
if keysDown[keys.down] then
if instances[focus[2] + 1] then
if instances[focus[2] + 1][focus[1]] then
if keysDown[swapKey] then
swapInstances(0, 1)
end
focus[2] = focus[2] + 1
scroll[2] = scroll[2] - 1
keysDown[keys.down] = false