Forgot what I did, probably some stuff

This commit is contained in:
Rene
2022-08-23 20:39:18 +02:00
parent be6a819ca9
commit 686de62f0f
18 changed files with 421 additions and 153 deletions

View File

@@ -354,24 +354,19 @@ naughty.connect_signal(
rubato_timer.target = 0
local last_position = n.timeout
w_template:connect_signal(
"mouse::enter",
function()
n.timeout = 99999
last_position = rubato_timer.pos
rubato_timer:abort()
rubato_timer.pause = true
end
)
w_template:connect_signal(
"mouse::leave",
function()
n.timeout = last_position
rubato_timer.pos = last_position
rubato_timer.duration = last_position
rubato_timer:reset()
n.timeout = rubato_timer.pos
rubato_timer.pause = false
rubato_timer.target = 0
end
)