anchor.diff:  import 'dart:async';
  +import 'dart:io';
   
   import 'package:logging/logging.dart';
   import 'package:flutter_riverpod/flutter_riverpod.dart';
  
positive.code: 
    void _init() async {
      windowManager.addListener(this);
      _idleTimer = Timer(const Duration(seconds: 5), () async {
        final visible = await windowManager.isVisible();
        if (mounted && !visible) {
          state = state.copyWith(active: false);
        }
      });
    }
  
    @override
  
negative.code:           state = state.copyWith(focused: false);
            _idleTimer?.cancel();
            _idleTimer = Timer(const Duration(seconds: 5), () async {
              if (mounted) {
                state = state.copyWith(active: false);
              }
            });
  