Browse Source

fix(neon): wix window visibility check

Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
pull/886/head
Nikolas Rimikis 1 year ago
parent
commit
838f58f16d
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 2
      packages/neon/neon/lib/src/blocs/user_statuses.dart

2
packages/neon/neon/lib/src/blocs/user_statuses.dart

@ -66,7 +66,7 @@ class UserStatusesBloc extends InteractiveBloc implements UserStatusesBlocEvents
var isAway = false; var isAway = false;
if (NeonPlatform.instance.canUseWindowManager) { if (NeonPlatform.instance.canUseWindowManager) {
final focused = await windowManager.isFocused(); final focused = await windowManager.isFocused();
final visible = await windowManager.isFocused(); final visible = await windowManager.isVisible();
isAway = !focused || !visible; isAway = !focused || !visible;
} }
try { try {

Loading…
Cancel
Save