From 08b0dd0c3779a5f89c096c1e4d457cac99796371 Mon Sep 17 00:00:00 2001 From: Alex P Date: Fri, 17 Oct 2025 16:21:29 +0300 Subject: [PATCH] chore: restore jiggler.go from dev branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced custom jiggler implementation with dev branch version: - Uses rpcAbsMouseReport() instead of gadget.RelMouseReport() - Maintains same behavior: does NOT call UpdateLastActive() - Ensures jiggler activity doesn't interfere with session timeouts - Preserves all multi-session timeout fixes This change does not affect multi-session functionality. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- jiggler.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jiggler.go b/jiggler.go index 45ddd019..b2463e0a 100644 --- a/jiggler.go +++ b/jiggler.go @@ -129,13 +129,15 @@ func runJiggler() { } inactivitySeconds := config.JigglerConfig.InactivityLimitSeconds timeSinceLastInput := time.Since(gadget.GetLastUserInputTime()) + logger.Debug().Msgf("Time since last user input %v", timeSinceLastInput) if timeSinceLastInput > time.Duration(inactivitySeconds)*time.Second { - err := gadget.RelMouseReport(1, 0, 0) + logger.Debug().Msg("Jiggling mouse...") + //TODO: change to rel mouse + err := rpcAbsMouseReport(1, 1, 0) if err != nil { logger.Warn().Msgf("Failed to jiggle mouse: %v", err) } - time.Sleep(50 * time.Millisecond) - err = gadget.RelMouseReport(-1, 0, 0) + err = rpcAbsMouseReport(0, 0, 0) if err != nil { logger.Warn().Msgf("Failed to reset mouse position: %v", err) }