hasFocus method
Check if window has focus.
Implementation
Future<bool> hasFocus(String id) async {
final result = await send<bool>('isFocused', windowId: id);
if (result == null) {
debugPrint('[FocusClient] hasFocus($id) returned null — using fallback');
return false;
}
return result;
}